You are viewing a single comment's thread. Return to all comments →
The statement:
if n | p < 0:
is not working in this case. Instead | calculated the bitwise OR of n and p
You should use:
if n < 0 or p < 0:
Seems like cookies are disabled on this browser, please enable them to open this website
Day 17: More Exceptions
You are viewing a single comment's thread. Return to all comments →
The statement:
is not working in this case. Instead | calculated the bitwise OR of n and p
You should use:
if n < 0 or p < 0: