Practice · 2 of 3
The int() Trap
CHALLENGE
Difficulty: beginner+25 XP
rating_text is "4.6". Convert it to a float and print its integer part using int().
Press Submit to check your solution.
Back to lesson: Practice: Type Conversions
Practice · 2 of 3
rating_text is "4.6". Convert it to a float and print its integer part using int().
Back to lesson: Practice: Type Conversions