I'm practising Python and I want to write a program that checks current time and see if it matches 2:12 pm and says: its lunch time
So first I figured out using import time
module, but I don't know how?
My problem is I don't know how to use time module for that. Or I'm using right syntax or not?
My code:
import time
bake=time()
if bake == '2:12':
print ('its time to eating lunch')
else :
print ('its not the time for eating lunch')