Computer Science, asked by 20092020el, 4 months ago

What are the 2 different Conditional Statements In Python?

Answers

Answered by Anonymous
2

Answer:

"if condition" – It is used when you need to print out the result when one of the conditions is true or false.

"else condition"- it is used when you want to print out the statement when your one condition fails to meet the requirement.

"elif condition" – It is used when you have third possibility as the outcome.

Answered by Anonymous
4

\huge\sf{A᭄nswer:-}

\tt\blue{"if \:condition"\: –} It is used when you need to print out the result when one of the conditions is true or false.

\tt\blue{"else\: condition"\:-} it is used when you want to print out the statement when your one condition fails to meet the requirement.

\tt\blue{"elif \:condition"\: –} It is used when you have third possibility as the outcome.

Similar questions