The Wayback Machine - https://web.archive.org/web/20210730141831/https://www.geeksforgeeks.org/python-miscellaneous-question-6/
Skip to content
Related Articles

Related Articles

Improve Article

Python | Miscellaneous | Question 6

  • Last Updated : 28 Jun, 2021

What does ~~~~~~5 evaluate to?
(A) +5
(B) -11
(C) +11
(D) -5


Answer: (A)

Explanation: ~x is equivalent to -(x+1).

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :