[[Python Programming]]
[[30-08-2021 1]]
# Conditional Execution
https://www.freecodecamp.org/learn/scientific-computing-with-python/python-for-everybody/conditional-execution
## IF statement
```
< Less Than
<= Less than or equal to
== Equal to
>= Greater than or equal to
> Greater than
!= Not equal
```
If it's indented, then it run in that block.
## indentation
indent is a syntax.
tab and four spaces.
Avoid using tab, use 4 spaces instead. if not indentation error.
Think about begin/end blocks
### Nested decisions
Can have many blocks within a blocks
## One Way Decisions
## Two Way Decisions
A decision/fork
```
IF ... else
```
# More conditional Structures
https://www.freecodecamp.org/learn/scientific-computing-with-python/python-for-everybody/more-conditional-structures
## Multi-way
elif
If it's true, then go into next step, and done.
run one, and skip the rest.
only one of the list will be run.
they are check in order.
No Else