What is the correct syntax for creating a basic if statement in Python?
Indentation
if num in nums:
return True
What is the correct syntax for if, else if, and else in Python?
if, elif, else
How do you do “logical and” and “logical or” in Python?
and, or (other languages are &&, ||)
What is the correct syntax when doing multiline conditionals?
if ((n > 2 and
n != m) or n == m):
n += 1