Advertisement
ronAmit

Untitled

Sep 15th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. from datetime import date
  2. start_date = date(2019, 5, 30)
  3.  
  4. today = date.today()
  5. print("Today's date:", today)
  6.  
  7. delta = (today - start_date).days + 1
  8. print("Days since 30.5.2019 (including today): ", delta)
  9. packet_size = 14
  10. print("Meaning when today finishes it should be in the packet:")
  11. print("Empty places: ", delta % packet_size)
  12. print("Pills left: ", packet_size - (delta % packet_size))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement