Feb-08-2019, 12:22 AM

I'm new and only 30 minutes into Python. I'm trying to calculate something using randomly generated numbers and when I want to round it to 1 decimal I use

How do I make these numbers output to just 1, 2 or 3?

number2 = round(number1, 1)But sometimes I'll get the output 1.0, 2.0, 3.0 etc

How do I make these numbers output to just 1, 2 or 3?