-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
meal
correct code
def main():
time = input("Enter time: ")
hours = convert(time)
if 7 <= hours <= 8:
print("breakfast time")
elif 12 <= hours <= 13:
print("lunch time")
elif 18 <= hours <= 19:
print("dinner time")
def convert(time):
hours, minutes = time.split(":")
hours = int(hours)
minutes = int(minutes)
return hours + minutes / 60
if name == "main":
main()
Metadata
Metadata
Assignees
Labels
No labels