Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import datetime
  2.  
  3. var = input("hello:")
  4. if var == "time" or"What's the time" or "What's the time?" or"What is the time" or "Whatis the time?":
  5. currentDT = datetime.datetime.now()
  6. print("It is " + str(currentDT))
  7. else:print("Sorry", I couldn't get that.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement