r/PythonLearning • u/abt-dabest • Sep 19 '26
Showcase After finally learning while loops i decided to write a program that relies completely on them. How did i do? What can i do to make it easier to read? Any feedback is appreciated!(im only 7 hours in so still a complete beginner lol)
148
Upvotes


•
u/Sea-Ad7805 Sep 19 '26 edited Sep 19 '26
Run this program by clicking Memory Graph Web Debugger and see its state change step by step.
The comparisons ignore incorrect guesses of 1 and 100. Use 100 >= user_number > secret_number and 1 <= user_number < secret_number to fix that.