convert boolean to int to satisfy solver requirements

This commit is contained in:
Adrian Manteza
2022-03-22 18:28:56 +00:00
parent df517fe7fe
commit 9d15112320
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,5 @@
def boolean_to_int(value: bool) -> int:
if value:
return 1
else:
return 0