Coding Exercise for Beginners in Python| Exercise 5 | Python for Beginners #lec23

preview_player
Показать описание
*********************************************

Connect & Contact Me:

*******************************************

More Playlists:

#coding #pythonforbeginners #python #jennyslectures #pythonprogramming
Рекомендации по теме
Комментарии
Автор

we can also write this simply like this:
current_age= int(input("Enter your current age:"))
age= 90-current_age
print(f"you have {age*365} days, {age*52} weeks, and {age*12} months left to live")

nobitha
Автор

Here's an easier way which I figured out.
a=int(input("Enter your age: "))
b=int(input("Enter life expectancy: "))
print(f"You have {b*365 - a*365} days left, {b*52 - a*52} weeks left and {b*12 - a*12} months left.")
Thank you mam this was a wonderful exercise

srujansathola
Автор

Literally amazing, the way u telling is super mam.. ❤.. Basically i am mechanical background i don't noo about the programing Laungauge (python.once i watching u r videos daily 2 hrs. I completely learn python with in one month... U r hard work makes sooo many students bright future.. 😊💝... Keep u r journey... 👍✨

srinivastalari
Автор

age=input("enter your current age: ")
d = 90 - int(age)
a = d * 365
b = a /7
c = a /30
print(f"You have {a} day's, {b} week's and {c} month's left")

tnkmouli
Автор

age = int(input("what is your age? "))
final_age = 90 - age
a = 365 * final_age
b = 52 * final_age
c = 12 * final_age
print(f"you have {a} days, {b} weeks, {c} months")

bharathgamingyt
Автор

It was a wonderful example to implement f string skills as well as thinking out of the box. Mam if you can take more sessions on Python tricky questions, it would be grateful

curiousgeek
Автор

age=int(input("enter your age: "))
total_months=12
total_weeks=52
total_days=365
completed_months=age*12
completed_weeks=age*52
completed_days=age*365


c=total_days-completed_days
print(f" you have {c} days {b} weeks and {a} months you seen the earth ")

mdfjdkn
Автор

Ma'am you are mixture of beauty 😍and intelligence 🌈💕✨

captainfriendschannel
Автор

easy way :
age = int(input(("enter your age: ")))
target = 90 - age
print(f"you have {target*365} days, {target * 52} weeks, {target * 12} months ")

vijayareddy
Автор

age = input("Enter your age")
age_before90 = 90 - int(age)
print(f" You will survive for {age_before90} years")
print(f" You have {age_before90*365} days, {age_before90*52} weeks, {age_before90*12} days left")

yxyeyfb
Автор

life = 90
age = int(input(" what is your age? "))
life = life-age
days = life*365
weeks = life*52
months = life*12
print(f"you have {days} days, {months} of months & {weeks} of weeks")

omiseternal
Автор

age=input("enter your age:")
d=90-int(age)
a=d*365
b=d*52
c=d*12
print(f"you have {a} days, {b} weeks and {c} months left")

ValliSurvepalli-egpe
Автор

Mam please continue c++ course too if possible

ronnysingh
Автор

age=int(input("enter the age"))
remain=90-age
k=71
days=365
weeks=52
months=12
print(f"my age is {remain}. i will leave upto {days*k}. i have {weeks*k}to live.i have {months*k} months to leave.left")

sathwikchinta
Автор

x=int(input("enter your current age"))
a=90-x
p=a*365
q=a*52
r=a*12
print("if you live for 90 yrs than you will be having", a, "years", p, "days", q, "weeks and ", r, " months left to live !!")

anjalileo
Автор

age=int(input("my current age is : "))
a=(90-age)*365
b=(90-age)*52
c=(90-age)*12
print(f"you have {a} days, {b} weeks and {c} months left.")
without looking ans i did this....

Muskanmotwani
Автор

Please explain : "I guess output is comming wrong", If Age is 85 only 5 years should be left not (1825 days, 260 weeks and 60 month) This means person get the output that he/she left with 1825 days + 260 weeks and 60 months total goes to 15 year I guess.

Graphic_Creat
Автор

entered_age=int(input("Enter your age: "))
age_in_days= entered_age * 360
age_in_weeks= entered_age * 52
age_in_months= entered_age * 12

until_days=(90*365) - age_in_days
until_weeks=(52*90) - age_in_weeks
until_months=(12* 90) - age_in_months

print(f"You have {until_days} days, {until_weeks} weeks, {until_months} months left")

VikashKumar-yiee
Автор

Thank you so much mam for giving your busy time for teaching python, it helps me lot.

tejashwinis
Автор

Mam your voice is very attractive and different

sonugoswami