I'm Trying To Create An Alarm Clock But It Gives Back This - Typeerror: 'int' Object Is Not Callable
while True: now = datetime.datetime.now() if now.weekday() == 5: if now.hour() == 10 and now.minute() == 30: webbrowser.open(url) elif now.hour() ==
Solution 1:
hour
and minute
are not methods, you do not need to call them.
if now.weekday() == 5:
if now.hour == 10 and now.minute == 30:
webbrowser.open(url)
elif now.hour == 7 and now.minute == 0:
webbrowser.open(url)
Post a Comment for "I'm Trying To Create An Alarm Clock But It Gives Back This - Typeerror: 'int' Object Is Not Callable"