How do I make the response from False
be 0
and True
to 1
equal to C?
That is, I want the answer from:
u=(1>2)
is 0
and not False
?
Thank you
How do I make the response from False
be 0
and True
to 1
equal to C?
That is, I want the answer from:
u=(1>2)
is 0
and not False
?
Thank you
Just cast for int
u=(1>2)
print(int(u))