+ 1

What does ~ mean in python language?

X=~3

5th May 2021, 11:45 AM
Gbadegesin Muhammed
Gbadegesin Muhammed - avatar
2 Answers
+ 3
Bitwise negation. Simply, 1's complement (or) flips 0s and 1s
5th May 2021, 11:55 AM
sarada lakshmi
sarada lakshmi - avatar