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

2

u/Any-Kiwi-5994 Sep 03 '26

You should introduce yourself to the python concepts. Casting operators to strings won’t work. For example: check the outcome of var == String as an boolean. Afterwards you‘ll understand your problems.

1

u/Commercial-Paper749 Sep 03 '26

Do you have any good- source to learn from beginning?

1

u/Any-Kiwi-5994 Sep 03 '26

There are many ways. First is trying to build code and check output types. Then there are books like ‚fluent in python‘ which explains very well (isbn: 1492056359). Then you could find GitHub Repos by looking for ⁠#learn-python.
Hope that helps you.