Python statements Flashcards
1
Q
Do if statements require parens?
A
Nope. Example:
if x > y:
x = 1
y = 2
Parens are optional, though.
Python > Python statements > Flashcards
Do if statements require parens?
Nope. Example:
if x > y:
x = 1
y = 2
Parens are optional, though.