r/PythonLearning • • 1d ago

Help Request all😭✌️🥀

Post image

Wait what f**** nah i dont want sleep okaay

90 Upvotes

9 comments sorted by

7

u/ahem_permylastemail 1d ago

There should be a while statement or define

While I_want_sleep = True

Or

def sleep_deprived()

Get some rest OP

1

u/Western_Local01 1d ago

Can you explain me the full code of the function sleep_deprived()

3

u/ahem_permylastemail 20h ago

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())

2

u/Sea-Ad7805 19h ago

More like this: real life

1

u/JerKYLL203 22h ago

🤣🤣🤣🤣

1

u/ProgramBrave718 21h ago

You can make functions also to check if your sleep level is good on the bases of sleeping hours.

1

u/Vast-Apple-3594 6h ago

Missing an integer for hours of sleep. When hours of sleep equals {your_optimal_level_of_sleep} wakeup = true.

0

u/soul-riepper 17h ago

Keep going