What does ' ~ ' mean in python 3.x ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does ' ~ ' mean in python 3.x ?

ye. title

2nd Dec 2016, 9:08 AM
Moon Hee Choi
Moon Hee  Choi - avatar
2 Answers
0
It's a bitwise operator. It will switch each bit for 1 to 0 and 0 to 1.
6th Dec 2016, 2:42 PM
Yong Xuan Wang
Yong Xuan Wang - avatar
0
haha... cause it, ty guys
6th Dec 2016, 4:08 PM
Moon Hee Choi
Moon Hee  Choi - avatar