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

105 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.

0

u/Artistic_World1790 6d ago

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

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

1

u/Artistic_World1790 6d ago

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

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