Python Tutorial: Calculate Number of Days, Weeks, or Months to Reach Specific Goals

preview_player
Показать описание
In this Python Programming Tutorial, we will be writing three different scripts to estimate how long it will take to reach certain goals. Our first script will calculate how many months it will take us to pay off a credit card. Our second script will calculate how many weeks it will take to lose a certain amount of weight. And our third script will estimate how long it will take to reach a certain number of subscribers. Let's get started...

The code from this video can be found at:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

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

Corey, I would like to thank you for your amazing work! Your videos are well explained and contain high-quality knowledge. Thanks to your tutorials I have changed my current job and from February I am starting working as a Junior Software Developer.

Keep it going!

Donation sent :)

szymonwolny
Автор

Great Video, as always. Thanks a lot!
Just a minor issue though,
using the calculations in the video here, the annual interest rate would actually exceed 0.13 per year.
To convert an annual interest rate to an effective periodic rate (e.g. monthly rate), you don't divide by 12, instead take the 12th root.
In this case:
interest_charge = (((interest_rate + 1) ** (1/12)) - 1) * balance

Thanks again for making brilliant Python lessons!

timothybloxsome
Автор

Thank you Corey; I am happy I took the time and listened to your videos; I just want to thank you and I will continue to support you,
All the best!

shazkingdom
Автор

Corey you kick ass at teaching and making good videos. Just last night I decided I wanted to get into coding. I've watched many videos that show basics of it- like how to write lines and what to put in the lines for each language. However, even though those are helpful to learn what to input, you're the first to clearly show what the output is. Very satisfying to see the code actually put to work and it really helps me to understand how to apply code to real application. Love your videos. You get right to the point and explain in a very clear and concise manner. Keep it up

seangreenlund
Автор

Opened the video and liked instantly. You deserve it!

AndreyLLIaBepMa
Автор

This is my first time using an Import Code, now I get the whole point if using one.

Thank you Corey !!!

THAFUYR
Автор

If you need to perform more complex date manipulations, look at the dateutil module.

One notable feature is the handling of months:

# pip install python-dateutil
from dateutil.relativedelta import relativedelta

end_date = end_date + relativedelta(month=+1)

simondekraa
Автор

Corey, Thanks for your amazing work! All videos are well explained with high-quality.

rocketsamiyou
Автор

Excellent video Corey! Clear explanations which make listening to your vids at 1.5x speed while driving achievable!

AdamSmith-uxif
Автор

Just want to say i really appreciate what you're doing here.
thank you

damienwayne
Автор

This is why when I changed my DS date I could speed up daycare in pokemon.

NOVAsteamed
Автор

Cried when he said "that was a very interesting script" 14:46

MrLimgreg
Автор

Hey man! I have gone through lot of python tutorials but you are the best i have encountered. Thank you so much for wonderful videos with such a great explanation. I have a request for you... Please post a video on calculating astronomical julian date from current date and calculating date from astronomical julian date. I saw some stuff online but no one explained in a better way. Hoping you would post video soon.

veeranjaneyulukale
Автор

woah, i was just doing this and i realized that i have the exact same date as he does except its 2019 XD

fridax
Автор

Thanks a lot for your time spending for us in creating videos..If possible make videos on explaining about Pandas, Numpy, Scipy and Matplotlib libraries please

tcb
Автор

It is 2024, and you have now 1, 27 milion subs, 😊 wish you double that much!!!

kapibara
Автор

man i love the way you explain stuff can you please consider doing a tutorial about gui for python like pyqt or Kivy

hossamashraf
Автор

Hey please make detailed videos on data structures and algorithms in python with their implementation

robinsiwach
Автор

May i ask can you create a video that uses this kind of thing in a if and else python that calculate the day of numbers and a thing that accept date if its valid or not.

lyndonbryllebacongan
Автор

Hey thanks for the video! Is it possible to use datetime within a 5 day
week (business week) structure, as to avoid an output of the weekend
for example? Thanks

angellohector