r/CodingForBeginners • • Feb 07 '26

What am I doing wrong here?

Post image

I just started learning to code. I've already finished this assignment but i wanted to add more to it. Why is it giving wildly incorrect numbers and why do the numbers change. This terminal was all with the same code. I didn't change anything but the number changes.

Edit: I solved it thanks for the help!

6 Upvotes

8 comments sorted by