In this video we understand the basic properties and syntax of a while loop and see how we can use it along with the time.sleep() to create a dynamic countdown towards the next birthday.
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 inpu...
3. How to import datetime module, what does import mean? - • 3. Birthday Countdown : How to import date...
4. Create the datetime object using the year, month and day of birth - • 4. Birthday Countdown : How to create the ...
5. Getting a better understanding of datetime objects - • 5. Birthday Countdown : Getting a better u...
6. Using lists and weekday() method to determine the weekday of birth - • 6. Birthday Countdown : Using lists and we...
7. Creating a datetime object to hold the current time - • 7. Birthday Countdown : Creating a datetim...
8. Determining if the next birthday will come this year or in the next year - • 8. Birthday Countdown : Determining if the...
9. A closer look at the syntax of the if-else condition - • 9. Birthday Countdown : A closer look at t...
10. Determining the weekday for the next birthday - • 10. Birthday Countdown : Determining the w...
11. Starting to think about creating the birthday countdown! - • 11. Birthday Countdown : Starting to think...
12. Understanding the timedelta object - • 12. Birthday Countdown : Understanding the...
13. The logic for converting total seconds to hours, mins, seconds - • 13. Birthday Countdown : The logic for con...
14. What are modulo (%) and floor division (//) operators in Python? - • 14. Birthday Countdown : What are modulo (...
15. Modulo and floor division operators to convert seconds to hours, minutes and seconds? - • 15. Birthday Countdown : Modulo and floor ...
16. Use divmod () method to convert total seconds to hours, minutes and seconds? - • 16. Birthday Countdown :Use divmod () meth...
17. Create a dynamic countdown towards next birthday! - • 17. Birthday Countdown: While loop and tim...
18. How to use ‘\r’ to print the birthday countdown on the same line? - • 18. Birthday Countdown : How to use '\r' t...
19. Common problems when using ‘\r’ for printing the dynamic countdown! - • 19. Birthday Countdown : Common problems w...
Bonus Ideas
1. Try/except statements for a graceful exit after invalid inputs - • 1. Birthday Countdown Enhancement: Gracefu...
2. How to prevent the user from giving a birth date that is in future? - • 2. Birthday Countdown Enhancement: How to ...
3. How to tell the user’s age based on the birth date provided? - • 3. Birthday Countdown Enhancement: How to ...
4. Using string split method and list indexing to extract hours, minutes and seconds - • 4. Birthday Countdown Enhancement: Using s...
5. How to tell the user the weekdays of all the birthdays till now? - • 5. Birthday Countdown Enhancements: How to...
6. How to handle the special day of 29th February? - • 6. Birthday Countdown Enhancement : How to...