Control Statement
Python Pass
When you do not want any code to execute, pass Statement is used. It is same as the name refers to. It just makes the…
Python Continue
continue Statement is a jump statement that is used to skip the present iteration and forces next iteration of loop to take place. It can…
Python Break
break statement is a jump statement that is used to pass the control to the end of the loop. When break statement is applied the…
Python While Loop
while Loop is used to execute number of statements or body till the condition passed in while is true. Once the condition is false, the…
Python For Loop
for Loop is used to iterate a variable over a sequence(i.e., list or string) in the order that they appear. Syntax: for <variable> in <sequence>: Output: 1 7…
Python nested If
When we need to check for multiple conditions to be true then we use elif Statement. This statement is like executing a if statement inside…
Python Else If
The content of this page is currently under processing. It will be updated soon. Have patience. It is coming soon….
Python If Else
Syntax: if(condition): False statements else: True statements Example- year=2000 if year%4==0: print “Year is Leap” else: print “Year is not Leap” Output: Year is Leap