r/PythonProjects2 • • Sep 03 '24

Word counter(sorry for image quality)

Post image
5 Upvotes

6 comments sorted by

9

u/atomioz Sep 03 '24

Why did you put the while loop with a and b you could have just written it directly. Or is there anything that I am missing. I am new to this so please feel free to correct me if I am wrong.

3

u/Parking-Air541 Sep 03 '24

That is completely unnecessary

4

u/SecretLegitimate4748 Sep 03 '24

Why not just While True:?

1

u/[deleted] Sep 04 '24

Why there is a while loop needed? When does reading input stops ? I think while reading the input of it encounters two consecutive spaces then it will stop right? Correct if I'm wrong... I'm new to python

1

u/anger_lust Sep 04 '24

b is radioactive. It is decaying and will eventually turn out to be less than a.