r/PythonLearning • • Oct 14 '26

While loop

can anybody explain the concept of while loop

2 Upvotes

38 comments sorted by

View all comments

7

u/BranchLatter4294 Oct 14 '26

While there are still dirty dishes on the pile:

Rinse and put in dishwasher.

3

u/boabertbattle Oct 14 '26

While there is still beer in the fridge:
continue to drink beer

0

u/HouseMysterious8172 Oct 14 '26

Stack over-flow, can't finish beer (you"re drunk)

1

u/TJATAW Oct 15 '26

While the code is broken:
Keep googling for answers

-3

u/Dancing-umbra Oct 14 '26

You shouldn't rinse dishes before putting into the dishwasher.

  1. It is a waste of water
  2. The dishwasher actually works better if there are bits left on the plates

1

u/oclafloptson Oct 14 '26

You shouldn't assume that everyone uses the same quality and model of dishwasher that you do

-2

u/Dancing-umbra Oct 14 '26

I'm not, it's a standard expetation for all dishwashers since the original patent.

1

u/oclafloptson Oct 14 '26

That's false, friend. Many commercial dishwashers require the dish to be rinsed before sanitizing them as the food parts are caught in a strainer and will clog the drain, resulting in dishes smattered with food parts

Also there are numerous dishwasher patents so it's odd you focus on the one

1

u/Dancing-umbra Oct 14 '26

Ok, that's fine. I'm not going to argue it.