import random random_float = random.random() print(random_float)
this is giving me "0.7947291713915571"
I want to round it to 2 places after the decimal. For example 0.79 in this case, how would i do that?
I tried round.uniform() but it didn't work in that case as well.