Advertisement
Guest User

Tasks.py

a guest
Dec 4th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import time
  2. def imptask():
  3. print "Important tasks to follow."
  4. time.sleep(2)
  5. x = ["eat", "wash", "dress", "socialise", "rest"]
  6. print x
  7.  
  8. def moretsk():
  9. print "Here are some additional tasks."
  10. time.sleep(1)
  11. y = ["Write an article", "practise code", "put bins out", "do laundry", "write pen pal letters"]
  12. print y
  13.  
  14. def additional():
  15. two = raw_input("Do you want more tasks? ")
  16. if two == 'yes':
  17. moretsk()
  18.  
  19. test = raw_input("According to Jet Maths, what is 7+3? ")
  20. meds = raw_input("Have you taken your meds yet? ")
  21. if (test == '12' and meds == 'yes'):
  22. print "Excellent we shall begin."
  23. imptask()
  24. additional()
  25. else:
  26. print "***Clearance not granted.***\n Take your MEDS and try again!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement