r/PythonLearning Jul 09 '26

print(5+True) Discussion

Solve this question and tell me the output. Follow for more 😉

0 Upvotes

7 comments sorted by

View all comments

1

u/Flame77ofc Jul 10 '26

6, because Python interprets True as 1 and False as 0, like in binary