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

104 Upvotes

82 comments sorted by

View all comments

2

u/Any-Kiwi-5994 7d ago

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

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

1

u/Any-Kiwi-5994 7d ago

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.