Python - Conditional Statements
Which of the following is the correct syntax for an
if statement in Python?if statement in Python?if syntax: after the condition and no parentheses or 'then'.if x > 5: which is correct. Others use 'then' or braces which are not Python syntax.if ends with colon [OK]if ends with colon, no 'then' or braces [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions