mardi 23 mars 2021

Why does ~False give -1 and ~True -2?

I always thought that ~ was equivalent to not in Python, but I had a bug that made me find out this. Could someone explain to me what that is?

Thanks

Aucun commentaire:

Enregistrer un commentaire