Quiz

Let's test our understanding of the concepts covered so far.

1

Which of the following is the right syntax for the if statement in Python?

A)
if expression:
   statement
B)
if expression
   statement
C)
if expression:
statement
D)

All of the above

Question 1 of 40 attempted

Get hands-on with 1400+ tech skills courses.