0

in python 3 i don't understand This operater(~) please give me some examples also.

1) = ~

10th Jun 2019, 9:52 AM
Rupak Barman
Rupak Barman - avatar
4 Antworten
+ 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.
10th Jun 2019, 10:05 AM
Kishalaya Saha
Kishalaya Saha - avatar
+ 4
Can you give us the complete code? Thank’s!
10th Jun 2019, 9:57 AM
Lothar
Lothar - avatar
+ 2
Bitwise operator : ~ not Example : ~0 = -1 ~1 = -2
10th Jun 2019, 9:56 AM
Théophile
Théophile - avatar