02. Control Flow - Conditional Blocks and Loops
Conditional statements
if
if condition :
print("The condition is true!")
If the codintion after if keyword is true, the code block will get executed. Otherwise it will just ignored.
>>> age = int(input("How old are you? "))
How old are you? 22...
python-beginner.hashnode.dev2 min read