Python statements Flashcards

1
Q

Do if statements require parens?

A

Nope. Example:

if x > y:
x = 1
y = 2

Parens are optional, though.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly