Preparing git repo for final project

This commit is contained in:
2023-07-09 11:19:26 +02:00
parent 6a38966eef
commit 63d06d6b35
67 changed files with 1587 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
def main():
t = convert(input("What time is it?\t\t"))
if 7 <= t <= 8:
print("breakfast time")
elif 12 <= t <= 13:
print("lunch time")
elif 18 <= t <= 19:
print("dinner time")
def convert(time):
h ,m = map(int, time.split(":"))
return float(h + m / 60)
if __name__ == "__main__":
main()