Python If Statements

Decision making is required when we want to execute a code only if a certain condition is satisfied.the if statements is used in python for decision making the following syntax of simple if.

							
if test expression:
    statements(s)
							
							

Example

							
a = 5

if a > 0
	print("This Number is Positive");
							
							
Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!