Is there a way to convert true of type unicode to 1 and false of type unicode to 0 (in Python)?
true
unicode
false
For example: x
x
only with this:
const a = true; const b = false;
console.log(+a);//1 console.log(+b);//0