Enchanted Code

Programming Cheatsheet

1 minute read

Keywords

Statement

A statement is a piece of code that when executed does not create a side-effect for example assigning to a variable.

1
a = 10
1
2
if x > y:
    ...

Expression

A expression is a piece of code that when executed results in a side-effect, for example adding to a variable.

1
a = b + 5

See Also

Buy Me A Coffee