We use Python 3.6

go back Level: Intermediate (img: IM / score: 3) level Bite 51. When does Python 2 die on Planet Miller?

20 out of 20 users completed this Bite ...
Will you be Pythonista #21 to crack this Bite?
Average Bite difficulty 1-10 rating: 6.0
» Up for a challenge? 💪

Imagine you landed on Planet Miller (from the movie Interstellar) where 1 hour takes 7 Earth years (known as the gravitational time dilation effect - see here if interested).

Given a fixed start date BITE_CREATED_DT calculate:

  1. How many hours Python 2 has left on Planet Earth
  2. How many minutes Python 2 has left on Planet Miller

For this program let's follow pythonclock.org and assume Python 2.7 will indeed retire on April 12th of 2020. Also an Earth year has 365 (not 365.2425) days. Have fun!

Github login button