Question: What is the correct syntax for an if statement in Python? A . if condition: do something B . if ( condition ) do something
What is the correct syntax for an if statement in Python?
A
if condition: do something
B
if condition do something
C
if condition do something
D
if condition then do something
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
