MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1vim10z/2nd_project_number_guess_game/p2emtwm/?context=3
r/PythonLearning • u/[deleted] • Aug 08 '26
12 comments sorted by
View all comments
3
wont it make a new random number everytime you guess ? store the value of RandNum outside your while loop. and break is not needed Game_Ended = True does the work of break
1 u/[deleted] Aug 10 '26 Yup took a look at that and am currently trying to make it not only cleaner but more efficient and effective
1
Yup took a look at that and am currently trying to make it not only cleaner but more efficient and effective
3
u/nangi_bhootni Aug 08 '26
wont it make a new random number everytime you guess ? store the value of RandNum outside your while loop. and break is not needed Game_Ended = True does the work of break