how to convert false to 0 and true to 1 in python,x = int(x == 'true')