🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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)?

  1. A.int
  2. B.float
  3. C.str
  4. 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 →