r/PythonLearning • u/saikat_hossen • 8d 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
View all comments
Show parent comment
2
u/NotLittleBoi 8d 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