🎙 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 3 of 15

What does int(7.9) return?

What does int(7.9) return?

  1. A.8
  2. B.7
  3. C.7.9
  4. D.Error
Answer & explanation

Correct answer: 7

int() removes the decimal part; it does not round.

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 →