r/pythontips • u/KDLadia • Sep 26 '24
Syntax Help with code
Im trying to make a code that will have the user enter a random set of integers and add the even numbers but if "9999" is entered it will give the sum of all the given even numbers given. Whats wrong with my code? Here
7
Upvotes
View all comments
Show parent comment
1
u/GrahaamH Sep 26 '24
No problem you can just say :
while data:
And it will run perfectly.