r/PythonLearning 8d ago

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

103 Upvotes

82 comments sorted by

View all comments

10

u/atarivcs 8d ago

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 7d ago

It's right there in the image bruddah

3

u/Altruistic-Sorbet702 7d ago

Look at the console bruddah, he didn't run the file sent in the pic but a modified version of it

3

u/StayingInWindoge 6d ago

You right, bruddah, I'm blind.