Maszi

liczenie 100 i 67 lat

Nov 24th, 2019
131
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from datetime import date
  2.  
  3. ileLat = int(input("Ile masz lat?\n"))
  4.  
  5. currentYear = date.today()
  6. y1 = currentYear.strftime("%Y")
  7.  
  8. stoLat = (int(y1) - ileLat) + 100
  9.  
  10. print("Bedziesz miec 100 lat w " + str(stoLat) + " roku")
  11.  
  12. wiek67 = (int(y1) - ileLat) + 67
  13.  
  14. print("Bedziesz miec 67 lat w " + str(wiek67) + " roku")
RAW Paste Data