Question-105: When you run below program, what would be printed on console?
X = 100
Y = not not X
print(Y)
- 100
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer: D
Exp: Since, non-zero value is considered as True. And not operator toggle it.
So
Y=not not True
You can access to full explanation to question and answer from this page.