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

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 95

  • @nobitha886
    @nobitha886 Рік тому +21

    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")

  • @srinivastalari499
    @srinivastalari499 Рік тому +5

    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... 👍✨

  • @srujansathola167
    @srujansathola167 4 місяці тому +2

    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

  • @tnkmouli4748
    @tnkmouli4748 Рік тому +6

    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")

    • @AnuSurya10
      @AnuSurya10 3 місяці тому

      Logically yes but sometimes values would be in float.

  • @vijayareddy6036
    @vijayareddy6036 Місяць тому +1

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

  • @YalaTooT
    @YalaTooT 11 місяців тому +2

    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
    a=total_months-completed_months
    b=total_weeks-completed_weeks
    c=total_days-completed_days
    print(f" you have {c} days {b} weeks and {a} months you seen the earth ")

  • @Ajay_k29
    @Ajay_k29 9 місяців тому +2

    maam leap year will be there no?

  • @bharathgamingyt9432
    @bharathgamingyt9432 Рік тому +2

    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")

  • @captainfriendschannel6457
    @captainfriendschannel6457 Рік тому +3

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

  • @curiousgeek2103
    @curiousgeek2103 Місяць тому

    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

  • @Graphic_Creat
    @Graphic_Creat Рік тому +4

    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.

    • @kwabenaamoakwa8336
      @kwabenaamoakwa8336 Рік тому +1

      Yes, I agree. totally wrong

    • @lovelymishra2949
      @lovelymishra2949 9 місяців тому

      No it would not be 15 years it would be 5 years just calculate the age again

    • @kiraakbalu5405
      @kiraakbalu5405 9 місяців тому +3

      1year =365days then 5years =5*365=1825 days

    • @MARUTHU_1801
      @MARUTHU_1801 2 місяці тому

      yeah,me too having the similar doubt.

  • @yousufsorwor3922
    @yousufsorwor3922 Рік тому +1

    All the best for you.

  • @naveennitt5420
    @naveennitt5420 Рік тому +2

    but we should consider leap year also

  • @sathwikchinta8669
    @sathwikchinta8669 Рік тому +1

    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")

  • @ronnysingh7386
    @ronnysingh7386 Рік тому +2

    Mam please continue c++ course too if possible

  • @AkhilGeorge-v7e
    @AkhilGeorge-v7e Рік тому +1

    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")

  • @omiseternal
    @omiseternal Рік тому +1

    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")

  • @Yimbu_EK
    @Yimbu_EK 2 місяці тому

    Awesome ❤

  • @ValliSurvepalli-eg5pe
    @ValliSurvepalli-eg5pe Рік тому

    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")

  • @sonugoswami7592
    @sonugoswami7592 Рік тому

    Mam your voice is very attractive and different

  • @AquaGamer777
    @AquaGamer777 10 місяців тому

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

  • @JAISRILOHANA
    @JAISRILOHANA Рік тому +2

    ma'am if i want to find my actual age from my birth year ? how can we calculate it from the birth year?

    • @maddasanivishnuvardhan9192
      @maddasanivishnuvardhan9192 Рік тому

      current year-birth year

    • @AnandSingh0404
      @AnandSingh0404 9 місяців тому

      birth_year=int(input("birth_year:"))
      current_year=int(input("current_year:"))
      print(current_year-birth_year)

  • @anjalileo9385
    @anjalileo9385 Рік тому

    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 !!")

  • @sneharoychowdhury
    @sneharoychowdhury 9 місяців тому

    age=int(input("Enter your current age: "))
    final_age= 90-age
    a=365*final_age
    b=52*final_age
    c=12*final_age
    print(f"You have {a} years, {b} weeks and {c} months left")

  • @Muskanmotwani777
    @Muskanmotwani777 3 місяці тому

    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....

  • @bhaveshvaishnav633
    @bhaveshvaishnav633 Рік тому

    Thank you

  • @akkiaksahya123rd
    @akkiaksahya123rd 7 місяців тому

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

  • @khajamohinuddin5797
    @khajamohinuddin5797 Рік тому

    age =int(input("enter your current age
    "))
    print(f"you have {90*365-age*365} days {90*52-age*52} weeks and {90*12-age*12} months left")

  • @69_sutanumukherjee35
    @69_sutanumukherjee35 Рік тому

    Thank you mam ❤️❤️

  • @tejashwinis459
    @tejashwinis459 Рік тому +1

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

  • @vivekchirukandath5912
    @vivekchirukandath5912 Рік тому

    Thank you madam

  • @Anagha-gx3rj
    @Anagha-gx3rj Рік тому

    (input("Enter your name: "))
    age=int(input("Enter your current age: "))
    n=90-age
    a=n*365
    b=n*52
    c=n*12
    print(f"You have {a} days, {b} weeks and {c} months left")

  • @harshaharsha6681
    @harshaharsha6681 10 місяців тому

    Super 🎉🎉🎉

  • @patilnishanthkumar1855
    @patilnishanthkumar1855 Рік тому

    name=input("enter your name:")
    age=input("enter your present age")
    r=90-int(age)
    a=int(r)*365
    b=int(r)*52
    c=int(r)
    print(f"u have days:{a}
    weeks:{b}
    years

  • @AlonePhilic
    @AlonePhilic 6 місяців тому

    age=int(input('Enter your age: '))
    years = 90 - age
    days = years * 365
    months = years * 12
    weeks = years * 52
    print(f'You have {days} days, {weeks} weeks, {months} months and {years} years left')

  • @BankAccount-m6j
    @BankAccount-m6j 8 місяців тому

    current_age = int(input("Enter your current age: "))
    years_left = 90 - current_age
    months_left = years_left * 12
    weeks_left = years_left * 52
    days_left = years_left * 365
    print(f"You have {years_left} years, {months_left} months ,{weeks_left} weeks and {days_left} days left")
    i am currenty 19 still got 71 years to live this amazing life.😙

  • @tirumalreddysreekanth3545
    @tirumalreddysreekanth3545 Рік тому +2

    First view

  • @makupetrical003
    @makupetrical003 5 місяців тому

    age = input("my age is: ")
    years = 90 - int(age)
    months = round(years*12)
    weeks = round(years*52)
    days = round(years*365)
    print(f"I have {days} days, {weeks} weeks, {months} months, {years} years left")

  • @mahesh_jadhav7822
    @mahesh_jadhav7822 8 місяців тому

    i confuse why 90 in this program ,which purpose
    please tell anyone

  • @MohansaiP-e3d
    @MohansaiP-e3d 8 місяців тому

    At last you didn't executed years_left, It is showing error

  • @abhiyanshmangal3348
    @abhiyanshmangal3348 Рік тому

    Mam I am from Science background but I want to learn about computer knowledge so How can I start mam

  • @MaDmAxLoCaL
    @MaDmAxLoCaL Рік тому

    age=int(input("Enter your age:"))
    Days=(90-age)*365
    week=(90-age)*52
    month=(90-age)*12
    year=90-age
    print(f"You have {Days} days, {week} weeks, {month} months and {year} years left")

  • @gsanthi511
    @gsanthi511 3 місяці тому

    age= input('enter current age: ')
    years_left = 90 - int(age)
    days_left= years_left*365
    weeks_left=years_left*52
    months_left=years_left*12
    print(f"There are {days_left} days, {weeks_left} weeks and {months_left} months left to live until 90 years.")

  • @MohansaiP-e3d
    @MohansaiP-e3d 8 місяців тому

    At last you didn't executed, years_left, it is showing error

  • @hassanmir776
    @hassanmir776 Рік тому

    lots of ❤️❤️❤️❤️

  • @amitKumar-wl8cb
    @amitKumar-wl8cb Рік тому

    🙏

  • @rakeshkatha9408
    @rakeshkatha9408 Рік тому +2

    Mam how to install compilers for all programs to compile

    • @Ashwinkotturu
      @Ashwinkotturu Місяць тому

      You can run online or download from official web site

  • @VikashKumar-yi3ee
    @VikashKumar-yi3ee 3 місяці тому

    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")

  • @sidharthkaruvarath2532
    @sidharthkaruvarath2532 3 години тому

    age = int(input("Please enter your current age :"))
    # 1year = 365 days
    # 1year = 52 weeks
    # 1year = 12 months
    print(f"You have {(90-age)*365} days,{(90-age)*52} weeks and {(90-age)*12} months left ")

  • @LokeshCE-
    @LokeshCE- Рік тому +1

    Mam you are looking so beautiful in this lecture ♥️♥️

  • @rohithmanne2402
    @rohithmanne2402 Місяць тому

    age=int(input("Enter your current age: "))
    days=90*365
    weeks=90*52
    months=90*12
    days_left=days-age*365
    weeks_left=weeks-age*52
    months_left=months-age*12
    print(f"You have {days_left} days,{weeks_left} weeks and {months_left} months left")

  • @aminuali3276
    @aminuali3276 Рік тому

    10q very much mam

  • @raghuvarmakuduka6522
    @raghuvarmakuduka6522 Рік тому

    age=int(input("enter the current age:"))
    year_live=90-age
    one_year=year_live*365
    weeks=year_live*52
    moths=year_live*12
    print("my year of live",year_live,"one_year",one_year,"and weeks",weeks,"moths",moths,"is live")

  • @aswin.s768
    @aswin.s768 Рік тому +1

    age=input("Input your age : ") #1 year=365 days, 1year=52 weeks, 1 year=12 months
    years=90-int(age)
    print(f"You live \"{years*365}\"days
    You live \"{years*52}\" weeks
    You live \"{years*12}\" months")

  • @ArhamandZohaib.1944
    @ArhamandZohaib.1944 Рік тому

    current_age = input("Enter your current age: ")
    total_years_left = 90 - int(current_age)
    total_months_left = total_years_left * 12
    total_weeks_left = total_years_left * 52
    total_days_left = total_years_left * 365
    Print(f"Total {total_years_left} years, {total_months_left} months, {total_weels_left} weeks, and {total_days_left} days left in your age.")

  • @prudhvijeeja__9461
    @prudhvijeeja__9461 7 місяців тому

    age=int(input("Enter your current age : "))
    remain=(90-age)
    years=remain
    months=remain*12
    weeks=remain*52
    days=remain*365
    print(f"you have {years} years remain
    you have {months} months remain
    you have {weeks} weeks remain
    you have {days} days remain")

  • @randomfactz332
    @randomfactz332 Рік тому

    mam i am not able solve this question i understand question not able to apply logic

  • @gsresearchadda3683
    @gsresearchadda3683 Рік тому +2

    Aap bahut pyari lag rhi ho mam😊😊

  • @sharifullahsalarzai
    @sharifullahsalarzai Рік тому

    Mam why you don't upload c++ videos

  • @Gurumanda07
    @Gurumanda07 Рік тому +1

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

  • @nandinidubey8968
    @nandinidubey8968 2 місяці тому

    #wap to find out how many days, week and month left if we live until 90 years
    Age = int(input("enter your currenet age"))
    print(f"You have {(90-Age)*365},{(90-Age)*52},and{(90-Age)*12}")

  • @Dhakadhakvlogs
    @Dhakadhakvlogs Рік тому

    Thanks you so much 💓💓

  • @dsc40sundar18
    @dsc40sundar18 Рік тому

    age = int(input("enter the age first :"))
    R_D = 90*365 - age * 365
    R_W = 90* 52 - age*52
    R_M = 90*12 - age*12
    print(f"you have {R_D} days , {R_W} weeks , {R_M} months left ")
    ANOTHER WAY OF SLOVING

  • @alok_kr_verma
    @alok_kr_verma Рік тому

    name=input("enter your name:")
    current_age=int(input("enter your current age:"))
    years_left=(90-(current_age))
    months_left=(f"{years_left*12}")
    weeks_left=(f"{years_left*52}")
    days_left=(f"{years_left*365}")
    print(f"Dear {name},you have {days_left} days , {weeks_left} weeks and {months_left} months left.")

  • @filmik-org
    @filmik-org Рік тому

    print("How many dayes,weeks,months we have left when we wil left 90 years left")
    print("let's calculate:")
    name=input("What is your name :")
    print("Hello " + name)
    age_1=input("TYPE YOUR AGE in years :") #years
    age_2=input("TYPE YOUR AGE in months :") #months
    age_3=input("TYPE YOUR AGE in weeks :") #weeks
    age_4=input("TYPE YOUR AGE in days") #days
    a=90*365 #days
    b=90*52 #weeks
    c=12*90 #months
    X=int(a) - (int(age_4)) #days
    Y= int(b) - int(age_2) #months
    Z=int(c) - int(age_3) #weeks
    print(f"You have {X} days, {Y} months and {Z} weeks left")
    print("congratulations")

  • @bir_tech
    @bir_tech Місяць тому

    age = int(input("Enter the current age : "))
    print(f"Your Current age is : {age} You Have {(365*90)-(age*365)} days left. You have {(90*52)-(age*52)} weeks left. You have {(90*12)-(age*12)}. ")

  • @rajub3705
    @rajub3705 Рік тому +2

    Madam sir madam anthe ❤️
    I LOVE U MADAM ❤️❤️❤️

  • @Symonwow
    @Symonwow 3 місяці тому

    Aslan ablammmmm

  • @LingeshhvarenKA
    @LingeshhvarenKA 5 місяців тому

    age = int(input("Enter your age : "))
    left_year = 90 - age
    left_days = left_year * 365
    left_weeks = left_year * 52
    left_months = left_year * 12
    print(f"You are left with {left_year} years or {left_days} days or {left_weeks} weeks or {left_months} months")
    age2 = int(input("Enter your age : "))
    left_year = 90 - age2
    print(f"You are left with {left_year} years or {left_year*365} days or {left_year*52} weeks or {left_year*12} months")

  • @SamridhaSamanta
    @SamridhaSamanta 18 днів тому

    I don't know why your code is genarating error😢😢

  • @Mahesh.k.v6648
    @Mahesh.k.v6648 Рік тому +2

    Hii mam

  • @MedishettyManikantaGandhi
    @MedishettyManikantaGandhi Рік тому +1

    age=int(input("Enter your current age:"))
    total_months=90*12
    total_weeks=90*52
    total_days=90*365
    months_comepleted=age*12
    weeks_completed=age*52
    days_completed=age*365
    a=total_months-months_comepleted
    b=total_weeks-weeks_completed
    c=total_days-days_completed
    print(f"{c}days,{b}weeks and {a}months left")

  • @umairmughal7892
    @umairmughal7892 4 місяці тому

    limit_age = 90
    current_age = int(input("Enter your current age : "))
    # **** 1year = 365 days
    # ****** 1year = 52 weeks
    # **********1 year = 12 months
    left_days = (limit_age*365) - ((current_age)*365)
    # print(left_days)
    left_weeks = (limit_age*52) - ((current_age)*52)
    # print(left_weeks)
    left_months = (limit_age*12) - ((current_age)*12)
    # print(left_months)
    left_years = (limit_age) - ((current_age))
    # print(left_years)
    print(f"Days left = {left_days}
    Weeks left = {left_weeks}
    Months left = {left_months}
    Years left = {left_years}")

  • @DARK_RYZEN
    @DARK_RYZEN 9 місяців тому

    current_age=int(input("enter your current age: "))
    days_year_1=365
    month_in_year=12
    weeks_in_year=52
    a=90-current_age
    print(f"remaining days are {a*days_year_1}, remaining months are {a*month_in_year} and remaining weeks are {a*weeks_in_year}")

  • @Allcomparisonhere
    @Allcomparisonhere Рік тому

    You are very beautiful mam

  • @shaikshaik9785
    @shaikshaik9785 Рік тому

    pls reply jenny

  • @deepikadagarharyana9125
    @deepikadagarharyana9125 Рік тому

    Mam plzzz provide mcq of paython 🙌🙌🙌🙌🙌🙌🙌🙌🙌🙌

  • @tirumalreddysreekanth3545
    @tirumalreddysreekanth3545 Рік тому

    Nice mam do more videos??

  • @tejakumar9157
    @tejakumar9157 Рік тому

    Subject vinadaniki kakunda Naalaaga Yavaru vacharu Ayya 😁😂

  • @LiquidOc3lot
    @LiquidOc3lot 11 місяців тому

    OLD_AGE = 90
    age = int(input("Enter your current age: "))
    days_left = 365 * (OLD_AGE - age)
    weeks_left = days_left // 7
    months_left = 12 * (OLD_AGE - age)
    print(f"You have {days_left} days, {weeks_left} weeks and {months_left} months left.")

  • @JinnahClaus
    @JinnahClaus 5 місяців тому

    print("I'm here to calculate time left to meet 72 hoor if you got only 90 years of life in this harami world")
    x= int(input("Enter your age:"))
    y =90-x
    print(f"No. of days left to meet 72 hoor {365*y} days")
    print(f"No. of weeks left to meet 72 hoor {52*y} weeks")
    print(f"No. of month left to meet 72 hoor {12*y} months")
    print(f"No. of years left to meet 72 hoor {90-x} years")

  • @Dhakadhakvlogs
    @Dhakadhakvlogs Рік тому

    Hii mam