Guest User

Untitled

a guest
Jan 7th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. def displayLesson():
  2. time.sleep(1)
  3. print('''
  4. Testing123
  5. ''')
  6.  
  7.  
  8. def userTime():
  9. print('Shut down request')
  10. time.sleep(1)
  11. print('3 seconds to shutdown...')
  12. time.sleep(2)
  13. print('Going offline...')
  14.  
  15. def flowControl():
  16. answer = input("do you want run the 'displayLession' function? ( yes or
  17. no)").strip()
  18. if answer == ('y' or 'yes'):
  19. displayLesson()
  20. else:
  21. userTime()
  22. print('End program')
Add Comment
Please, Sign In to add comment