SHARE
TWEET

Untitled

ronAmit Sep 15th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top