PraetorRegnum

Phone Call

Mar 8th, 2022 (edited)
1,149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import Ask
  2. isMorning = Ask.forBoolean("Is it morning?")
  3. isMom = Ask.forBoolean("Is the caller your Mom?")
  4. isAsleep = Ask.forBoolean("Are you asleep?")
  5.  
  6. doAnswer = False
  7.  
  8. if not isAsleep and (isMom or  not isMorning):
  9.     doAnswer = True
  10.    
  11. if doAnswer:
  12.     print("Hello?...")
  13. else:
  14.     print("I don't answer")
Advertisement
Add Comment
Please, Sign In to add comment