Initialising 100 days with Python
Starting the 100 days with python challenge :
#ref: https://github.com/talkpython/100daysofcode-with-python-course/tree/master/days/01-03-datetimes
Days 01-03 Dealing with Datetimes
Datetimes. The bane of our existence as coders (or at least for me anyway!).
This set of lessons will walk you through the basics of datetime, starting with datetime and date then moving onto timedelta.
Day N: Learn the basics of datetime and date
A super basic day to get you started. Watch Learning datetime and date and Calculating time with datetime timedelta.
After watching the videos, use your Python shell to play around with some timestamp calculations as per the content in the videos.
Day N+1: Bites of Py Bite 7 - Parsing dates from logs
Head on over to CodeChalleng.es and sign up if you haven't already.
Use the following URL to unlock Bite 7 for free: https://codechalleng.es/bites/promo/datetimes
Work on Bite 7 - Parsing dates from logs for your second day of learning datetime.
Edit: We decided to simplify Bite 7 slightly after some feedback we received from students. We've now removed the requirement to read in the file which should keep the Bite focused on the theme.
Additionally, we've added another Bite that should be more appropriate for beginners. Unlock it here: https://codechalleng.es/bites/promo/datetimes_starter
Day N+2: Your Turn!
You've got the basics down so now create something for yourself!
A fun project would be to create yourself a Pomodoro Timer that incorporates datetime rather than just the time module. Have it display timestamps.
This could also be applied to a stopwatch app. Use time of course but also throw in the timestamps and even some basic calculations on the difference between the start and end timestamps.
Thanks to @talkpython and @pybites
Comments
Post a Comment