0
in python 3 i don't understand This operater(~) please give me some examples also.
1) = ~
4 Answers
+ 5
Check out this post on bitwise complement: https://www.sololearn.com/learn/4076/?ref=app
There are some good explanations in the comments too! You can find the lessons on other bitwise operators if you search in the Learn section of the app.
+ 4
Can you give us the complete code? Thankâs!
+ 2
Bitwise operator :
~ not
Example :
~0 = -1
~1 = -2