Header Ads

Responsive Ads Here

If-else statement in Python

 If-else statement



num = 5

if num == 5:
    print("Number is 5.")
   
   
if num == 10:
    print("Number is 10.")
else:
    print("Condition is false!!!")

Powered by Blogger.