Practice ยท 2 of 3
The int() Trap
rating_text is "4.6". Convert it to a float and print its integer part using int().
Difficulty: beginner
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().
Difficulty: beginner
Back to lesson: Practice: Type Conversions