From the course: Python Essential Libraries

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Pendulum

Challenge: Pendulum - Python Tutorial

From the course: Python Essential Libraries

Start my 1-month free trial

Challenge: Pendulum

(bright electronic music) - [Instructor] Alright, it's time to take a little bit of a programming challenge. So let's use what we learned in this chapter about Pendulum, to tackle a date calculation problem. So here's the challenge: Now how would you write a program to calculate how many days remain until the next International Clash Day? Now if you're not familiar with International Clash Day, it's held every year on February 7th, to celebrate the music and ideals of the English rock band named, The Clash. And our program will tell us how many days are left until the next one. So, what I'm going to do is this: I'm going to go ahead and run my finished program here in the terminal, so we can see what the output looks like. So I'm going to run (sound of typing) Okay? And when I run my code, you can see that the output contains several lines, alright? The first line prints "Today is" and then the date, which is…

Contents