r/PythonLearning • • 7d ago

Python Boolean

I'm having some trouble understanding Python boolean logic, it’s so simple to let it be confusing. Can anyone explain it to me in their own language?

2 Upvotes

14 comments sorted by

View all comments

1

u/ninhaomah 7d ago

Show us the piece of code you don't understand.

1

u/saikat_hossen 7d ago

Why isn’t mine working?

2

u/NotLittleBoi 6d ago

Input returns a string. You need to cast it to an int by wrapping int() around your input

Also I’m pretty sure the different spacing of the print statements will get the compiler to yell at you too if one is done with tab spacing and the other is normal spacing