← Quiz: Python Variables and Data Types: all 15 questions
Quiz: Python Variables and Data Types · Question 4 of 15
What is type(10 / 2)?
What is type(10 / 2)?
- A.int
- B.float
- C.str
- D.bool
Answer & explanation
Correct answer: float
The / operator always gives a float in Python 3: 10 / 2 = 5.0.
Can you get the rest right without peeking?
Take the timed Quiz: Python Variables and Data Types quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →