What is the purpose of the 'if' statement in Python?
Correct answer
C. To handle conditions and make decisions
16 views
C. To handle conditions and make decisions
16 views
The 'if' statement is used to introduce conditional logic in Python. It allows the program to make decisions based on whether a given condition is true or false.
Not sure why the answer is C? Ask here and get an explanation.