The 3.0 version of Python is often called Python 3000, or Py3k for short. This is a major upgrade compared to earlier versions of Python. In order not to bring too much burden, Python 3.0 was not designed with backward compatibility in mind.

Python3 conditional control syntax

Python conditional statements are code blocks that are executed based on the execution results (True or False) of one or more statements.

Python3 conditional control example

#!/usr/bin/python3
var1 = 100if var1:
Print ("1 - if expression condition is true")
print (var1)
var2 = 0if var2:
Print ("2 - if expression condition is true")
print (var2)print ("Good bye!")