Expression vs Statement
- express: evaluate to a value
python
4
"Hello World"
7 + 2
True or False
(2 < 3) and (9 > 0)
- statement: an action
python
print(4) # console operation
x = 1 # assign value operation
- change line
python
def get():
return 1 != 1 or \
1 == 1
# or
"""
_____
_.'_____`._
.'.-' 12 `-.`.
/,' 11 1 `.\
// 10 / 2 \\
;; / ::
|| 9 ----O 3 ||
:: ;;
\\ 8 4 //
\`. 7 5 ,'/
'.`-.__6__.-'.'
((-._____.-))
_)) ((_
'--' '--'
"""