GIAC
GPYC · Question #33
What is the output of the following line of code typed into a Python interactive session? >>> print (~100)
The correct answer is B. -101. You've hit your limit · resets 1pm (America/New_York)
Python Fundamentals & Command Line Tools
Question
What is the output of the following line of code typed into a Python interactive session?
print (~100)
Options
- A~100
- B-101
- C100
- D101
How the community answered
(44 responses)- A5% (2)
- B89% (39)
- C7% (3)
Explanation
You've hit your limit · resets 1pm (America/New_York)
Topics
#bitwise NOT#two's complement#bitwise operators#integer operations
Community Discussion
No community discussion yet for this question.