We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
meal
correct code
def main():
time = input("Enter time: ")
hours = convert(time)
def convert(time):
hours, minutes = time.split(":")
hours = int(hours)
minutes = int(minutes)
return hours + minutes / 60
if name == "main":
main()
The text was updated successfully, but these errors were encountered: