Discussion on Week 2's Topic

How do you write a conditional statement in Python 3?

How do you write a conditional statement in Python 3?

by Sohana Afroz 182-15-2089 -
Number of replies: 0


If <expr> is true (evaluates to a value that is "truthy"), then <statement> is executed. If <expr> is false, then <statement> is skipped over and not executed. Note that the colon ( : ) following <expr> is required. Some programming languages require <expr> to be enclosed in parentheses, but Python does not.