Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import datetime
  4. currenttime = datetime.datetime.now()
  5. currentyear = currenttime.year
  6. myname = raw_input("What's your name? ")
  7. myage = input("How old are you? ")
  8. myhundred = currentyear + 100 - myage
  9.  
  10. howmany = input("How many copies? ")
  11.  
  12. for i in range (0,howmany):
  13. <<<<<<< HEAD
  14. print(myname + " is " + str(myage) + " years old and will be 100 in " + str(myhundred) + ".")
  15. =======
  16. print(myname + " is " + str(myage) + " years old and will be 100 in " + str(myhundred) + ".")
  17. >>>>>>> d7408a466e6568c67af252df6f798a3434993ed5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement