Question-26: If you run below code snippet, what output should be generated?
var=98//99*100
print(var)
- 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: E
Exp: As we are using here // , it means it must generate 0 when 98//99. If you multiply an int value with another int value.
You can access to full explanation to question and answer from this page.