Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- var = input("hello:")
- if var == "time" or"What's the time" or "What's the time?" or"What is the time" or "Whatis the time?":
- currentDT = datetime.datetime.now()
- print("It is " + str(currentDT))
- else:print("Sorry", I couldn't get that.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement