← 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?
- A.8
- B.7
- C.7.9
- 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 →