6 lines
98 B
Python
6 lines
98 B
Python
def boolean_to_int(value: bool) -> int:
|
|
if value:
|
|
return 1
|
|
else:
|
|
return 0
|