0
Meaning of the tilde sign ~ in Python
What is the role of tilde sign in puthon?
3 Respuestas
+ 6
It's used as a mathematical operator in all programming languages.
https://www.sololearn.com/learn/4076/?ref=app
+ 4
Tilde is bitwise negation operator. It flips 1's with 0's and vice versa. This operation takes place in binary level.
Read this article to know more:
https://blog.finxter.com/tilde-JUMP_LINK__&&__python__&&__JUMP_LINK/#:~:text=What%20is%20the%20Tilde%20~%20in,1%20and%20~101%20becomes%20010%20.
0
Can you show an example of where you saw it used as i don't think i have seen it before.