Myvideo

Guest

Login

4 | If Else | Python for Complete Beginners

Uploaded By: Myvideo
17 views
0
0 votes
0

🔥 All Free Tutorials - # statement # used to create prog that makes decision # if boolean_exp: # statements age = 10 if (age >= 18): print (“Eligible to drive“) else: print (“Not eligible to drive“) print (“I am outside if“) # elif # if you have more than 2 options to choose from num = 0 if (num > 0): print (“number is positive“) elif (num < 0): print (“number is negative“) else: print (“number is zero“) # nested # statment inside another num = float(input(“Enter a number : “)) if num >= 0: if num == 0: print (“Zero“) else: print (“Positive“) else: print (“Negative“) # simple calculator ▬▬▬▬▬▬▬ Every Like & Subscription gives me great motivation to keep working for you You can supp ... #RaghavPal #How_to_use_if_else_statements_in_Python #Different_types_of_if_else_statements_in_Python #How_to_evaluate_if_else_statements_in_Python #If_else_statements:_The_key_to_making_your_Python_code_smarter 20230713 3bXsHoktAwI

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later