pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
21 lines (13 loc) • 941 B
Markdown
# Statements
The following Python statements are supported:
## Variable declarations
* [assignment statement](https://docs.python.org/2/reference/simple_stmts.html#assignment-statements)
## Block-structured statements
* [`if-else` conditional statement](https://docs.python.org/2/reference/compound_stmts.html#the-if-statement)
* [`while` loop](https://docs.python.org/2/reference/compound_stmts.html#the-while-statement)
* [`for in` loop](https://docs.python.org/2/reference/compound_stmts.html#the-for-statement)
## Control-flow commands
* [`pass` statement](https://docs.python.org/2/reference/simple_stmts.html#the-pass-statement)
* [`break` statement](https://docs.python.org/2/reference/simple_stmts.html#the-break-statement)
* [`continue` statement](https://docs.python.org/2/reference/simple_stmts.html#the-continue-statement)
* [`return` statement](https://docs.python.org/2/reference/simple_stmts.html#the-return-statement)