1. roycehaynes
  2. Python 3 Patterns & Idioms

Source

Python 3 Patterns & Idioms / code / PythonForProgrammers / if.py

1
2
3
4
5
6
# QuickPython/if.py
response = "yes"
if response == "yes":
    print("affirmative")
    val = 1
print("continuing...")