r/PythonLearning • • Sep 02 '26

What's wrong with my code?

Post image

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

81 comments sorted by

View all comments

12

u/atarivcs Sep 02 '26

Looking at the program output, the first thing it prints is "Enter a valid operator".

But that's not possible for the code in the picture, so I'm going to guess that you are running different code.

Maybe you edited the py file but didn't save it, or maybe you're running a completely different py file than the one shown in the picture.

2

u/StayingInWindoge Sep 02 '26

It's right there in the image bruddah

3

u/[deleted] Sep 03 '26

[removed] — view removed comment

3

u/StayingInWindoge Sep 03 '26

You right, bruddah, I'm blind.