Question PRG-PY-0022
EasyWhat is the output of this program?
print(type(3.0).__name__)
- A.
float
- B.
int
- C.
Show answer and explanation
Answer: A
3.0 has a decimal point, so it's 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(type(3.0).__name__)
float
int
Answer: A
3.0 has a decimal point, so it's a float.
str
double