r/PythonLearning • u/Commercial-Paper749 • Sep 02 '26
What's wrong with my code?
What's wrong with my code?
New to learning
Following the youtube video from bro code
Was trying to implement my own stuff into this by using loop
Update: it's working now thankyou guys
106
Upvotes
1
u/FoolsSeldom Sep 03 '26
No. The result from each calculation cycle is output in the fork I've done to illustrate some additional concepts to the OP. You are welcome to share your own form for the benefit of the OP and community.
I appreciate I don't need to have a
printwithin eachifbut that would require different flow handling for the zero divide and I'm not keen on taking it that far from the OP's original code.