

InterviewSolution
Saved Bookmarks
1. |
If else statement |
Answer» If else are the example of Iterative (looping) statement. These statement gives the output after checking the statement and if condition(s) is true one block of statement is print if false some other block of statement is print.. Example. If 5>2: print ("true") else: print("false") Hope it\'s helpful for you!!!<br>If..else statement is also known as condition checking statement. There are three types to write if..else statements:-1.If statement :- execute when the condition is true2.If...else statement :- excutes the statement inside if when the Condition is true, otherwise inside else when the condition is false.3.If..elif..else statement:- used to check multiple conditions and executes accordingly. | |