Question PRG-PY-0003
EasyWhat is the output of this program?
print(7 / 2)
- A.
3.5
- B.
4
- C.
Show answer and explanation
Answer: A
/ is true division in Python 3 and always returns a float.
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(7 / 2)
3.5
4
Answer: A
/ is true division in Python 3 and always returns a float.
3
3.0