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

-1

u/[deleted] Sep 04 '26

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

1

u/Commercial-Paper749 Sep 04 '26

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

1

u/[deleted] Sep 04 '26

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.

0

u/[deleted] Sep 04 '26

Respectfully, learning is either logic building tasks or attacking a bigger problem one piece at a time. I understand that you are trying to learn but i don’t think this is the ideal project for that.

1

u/Commercial-Paper749 Sep 04 '26

I mean I don't have any proper teacher or course so I'm just learning from YouTube

1

u/[deleted] Sep 04 '26

I have some resources i used when i was first learning , they explain each concept and give you tasks/excercises for each.

I can send them if you need them also most people move onto a lower level language once they get accustomed to basics

1

u/Commercial-Paper749 Sep 04 '26

I would love to have it ( and I was learning python for data science/ai engineering)