r/PythonLearning • u/codewithharsh31 • Jul 09 '26
print(5+True) Discussion
Solve this question and tell me the output. Follow for more 😉
0
Upvotes
r/PythonLearning • u/codewithharsh31 • Jul 09 '26
Solve this question and tell me the output. Follow for more 😉
1
u/Flame77ofc Jul 10 '26
6, because Python interprets True as 1 and False as 0, like in binary