Python Programming - Conditional Statements - Discussion

Discussion Forum : Conditional Statements - General Questions (Q.No. 1)
1.
What is the purpose of the if statement?
To declare a variable
To define a function
To control the flow of a program based on a condition
To create a loop
Answer: Option
Explanation:
The if statement is used to make decisions in Python. It allows you to execute a block of code if a certain condition is true.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.