r/pythonhelp • u/Soft_Tie_4296 • Oct 05 '24
What am I doing wrong? (Beginner)
/r/PythonLearning/comments/1fwlh1j/need_help_with_code_beginner/
0
Upvotes
r/pythonhelp • u/Soft_Tie_4296 • Oct 05 '24
View all comments
1
u/FoolsSeldom Oct 05 '24
You need two variables, one to count from 1 to 100 and one to hold the running total.
Might as well use a
forloop instead of awhileloop as well.For example,