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