0

One of my teachers warned me not to use while in python. It is really strange for me as I have not found any articles on why to do so. What do you think on what could the grounds be?

gen
  • 9,528
  • 14
  • 35
  • 64

1 Answers1

2

Use the control statement that best suits your needs in each situation.

An advice like "Don't use while, only use for" boils down to "If the only tool you know is a hammer, all problems look like a nail."

Hyperboreus
  • 31,997
  • 9
  • 47
  • 87