Python transforma 0 em 1 e vice -versa

x = 1 - x
4MBL