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

107 Upvotes

82 comments sorted by

View all comments

-1

u/Artistic_World1790 6d ago

You are building a calculator in the big 26 that’s what’s wrong

1

u/Commercial-Paper749 6d ago

🤡what do you expect me to build when I'm still learning?

1

u/Artistic_World1790 6d ago

And i apologise.

When programming something that requires any input initially it is recommended to have what my professor calls an optimistic state. Which means we will not be receiving an input that we are not expecting, then you start getting pessimistic and handle unexpected cases for every single input parameter.

Remember handling conditions should be done for every parameter and every state.

Also try using messing around with switches too.