Beginners Introduction to the Syntax and Symantics of the Python Programming Language
Variables are not pre-declared in Python.
In Python, conditional operators like
if condition:
... do something ...
else:
... do some-other-thing ...
give different options for different conditions.
For instance:
if age > 18:
print("You are grown-up now.")
else:
print("You are still young.")
In Python, iteration operations are done using loops:
while loop:
while condition:
... do something ...
and
for loop:
for i in a_number:
... do something ...