r/PythonLearning • u/New_Cartoonist337 • Oct 24 '26
Help Request all😭✌️🥀
Wait what f**** nah i dont want sleep okaay
204
Upvotes
r/PythonLearning • u/New_Cartoonist337 • Oct 24 '26
Wait what f**** nah i dont want sleep okaay
View all comments
Show parent comment
5
u/ahem_permylastemail Oct 24 '26
def sleep_deprived():
print(“I need more sleep!”)
#main code
sleep_deprived()
You can also add user input and ask if how many hours of sleep they’ve gotten:
def sleep_deprived():
hours = int(input(“How many hours did you sleep? “)
if hours < 6:
return “you may be sleep deprived”
else:
return “you got enough sleep”
#main code
print(sleep_deprived())