Happy New Year Animation

happy-new-year-textIn this challenge we will use Python code to create a text-based (ASCII) animation to be used as a final countdown before the new year!

Our countdown timer will be based on a for loop to count down from 5 to 0. It will also make use of the sleep() function from the time library to allow 1 second between each iteration of the for loop.

Check our two animations below:

5-4-3-2-1 Hapy New Year! - Version 1.0Version 2.0

Version 1.0

Version 2.0

This animation makes use of 10 procedures called one(), two(), three(),…, up to ten() to improve the output of our countdown timer. These procedures are all stored in a module called myNumbers.

More Text-Based Animations

Visit this blog post to find the code for more text-based animations and start creating your own animations.

Did you like this challenge?

Click on a star to rate it!

Average rating 4.4 / 5. Vote count: 7

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: ,