Skip to content

Instantly share code, notes, and snippets.

View ohseojay's full-sized avatar

Jay Oh ohseojay

View GitHub Profile
@ohseojay
ohseojay / livetimepractice.py
Created September 8, 2019 01:46
Can you help with this? I runed this on pycharm and any word like"hello" as an input still works as current dt
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.")