Question PRG-PY-0050
MediumWhat is the output of this program?
print(0.1 + 0.2 == 0.3, round(0.1 + 0.2, 2) == 0.3, 7 // -2, -7 % 3)
- A.
True True -3 -1
- B.
False True -4 2
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
What is the output of this program?
print(0.1 + 0.2 == 0.3, round(0.1 + 0.2, 2) == 0.3, 7 // -2, -7 % 3)
True True -3 -1
False True -4 2
Sign up free to see the answer and a step-by-step explanation.
False False -4 2
False True -3 2