If-else statement

  • Python also supports a two-way selection statement:
if expression:
  # statements if expression is true
else:
  # statements if expression is false