Nested If else | Python Mastery Ep-23 | code io - Tamil

preview_player
Показать описание
In this video from the series of Python Mastery, we learn about Nested If else.

Join THE SQUAD on Discord

Follow us on
Instagram

LinkedIn
Рекомендации по теме
Комментарии
Автор

BRO U ARE TRULY INTELLECTUAL AND U ARE GIVING CLEAR EXPLANATIONS BRO..THANKS

kesavandesi
Автор

age =int(input("enter your age"))
if (age<30):
pizza_daily =bool(input("if you eat pizza enter yes or otherwise enter no"))
if pizza_daily :
print("your are unfit")
else:
print("your are fit")
else:
workout_daily =bool(input("if you do workout enter yes or otherwise no"))
if workout_daily :
print("you are fit")
else :
print("you are unfit")

ragulragul
Автор

kindly mention your subscribers i tried this program in my way i get bool input the problen was i put False but it gets true only you get false when nothing and enter will get false i have struggle to find this error for minutes thank you
age=int(input("age"))
pizza=bool(input("pizza"))

if age<30:
if pizza==False:
print("fit")
else:
print("not fit")
elif age>30:
if excersize==True:
print("fit")
else:
print("not fit")
print(pizza, type(pizza))

noopu
Автор

ternary operator
print("fit") if age<30 and pizza==False else print("not fit")

noopu