In this video we enhance the birthday countdown by adding code to tell the user not only the weekday of his day of birth, but also for all the subsequent birthdays till now.
For more details, including detailed notes, please see https://wibyte.in/python-class-course...
Other videos in the Birthday Countdown playlist -
1. Introduction - • 1. Birthday Countdown : Introduction
2. Getting User’s inputs for the birthday countdown: year, month, day of birth - • 2. Birthday Countdown: Getting User's...
3. How to import datetime module, what does import mean? - • 3. Birthday Countdown : How to import...
4. Create the datetime object using the year, month and day of birth - • 4. Birthday Countdown : How to create...
5. Getting a better understanding of datetime objects - • 5. Birthday Countdown : Getting a bet...
6. Using lists and weekday() method to determine the weekday of birth - • 6. Birthday Countdown : Using lists a...
7. Creating a datetime object to hold the current time - • 7. Birthday Countdown : Creating a da...
8. Determining if the next birthday will come this year or in the next year - • 8. Birthday Countdown : Determining i...
9. A closer look at the syntax of the if-else condition - • 9. Birthday Countdown : A closer look...
10. Determining the weekday for the next birthday - • 10. Birthday Countdown : Determining ...
11. Starting to think about creating the birthday countdown! - • 11. Birthday Countdown : Starting to ...
12. Understanding the timedelta object - • 12. Birthday Countdown : Understandin...
13. The logic for converting total seconds to hours, mins, seconds - • 13. Birthday Countdown : The logic fo...
14. What are modulo (%) and floor division (//) operators in Python? - • 14. Birthday Countdown : What are mod...
15. Modulo and floor division operators to convert seconds to hours, minutes and seconds? - • 15. Birthday Countdown : Modulo and f...
16. Use divmod () method to convert total seconds to hours, minutes and seconds? - • 16. Birthday Countdown :Use divmod ()...
17. Create a dynamic countdown towards next birthday! - • 17. Birthday Countdown: While loop an...
18. How to use ‘\r’ to print the birthday countdown on the same line? - • 18. Birthday Countdown : How to use '...
19. Common problems when using ‘\r’ for printing the dynamic countdown! - • 19. Birthday Countdown : Common probl...
Bonus Ideas
1. Try/except statements for a graceful exit after invalid inputs - • try/except statements for a graceful ...
2. How to prevent the user from giving a birth date that is in future? - • How to prevent the user from giving a...
3. How to tell the user’s age based on the birth date provided? - • How to tell the user's age based on t...
4. Using string split method and list indexing to extract hours, minutes and seconds - • Using string split method and list in...
5. How to tell the user the weekdays of all the birthdays till now? - • How to tell the user the weekdays of ...
6. How to handle the special day of 29th February? - • How to handle the special day of 29th...