We will use a Turtle graphics library to build a countdown timer that displays the number of days until your event. As part of this project you will learn:
Turtle is a graphic library for Python. Using Turtle, we can easily draw in a drawing board.
First, we import the turtle module. Then create a window, next we create a turtle object and using the turtle method we can draw on the drawing board.
Next, we will replace our plane background with the calendar image.
Next, we need to modify our inputs so the programming language understands it is a date. For this, we will use another library called datetime
Now let's transfer our inputs to the date format, add this line of code after your inputs
To calculate how many days are left we also need to know today's date.
We already knew how many days are left, let's display it on the calendar To do it we use the following commands:
Optional: Want more? Try to understand the code and learn more turtle commands on your own. You can also type this code in a new trinket window and see what happens and create your own art.
You can submit your drawings once again, just add a new trinket url.
In order to receive your completion certificate all projects should be submited before 6th April 2023
You have completed this project.