Beginner Python
Q9 / 101

What is the correct way to start an if statement?

Correct! Well done.

Incorrect.

The correct answer is C) if x > 0:

C

Correct Answer

if x > 0:

Explanation

Python if statements don't require parentheses around the condition, but require a colon at the end. Python is case-sensitive.

Progress
9/101