Posts by ProgramadorPará • 31 points
2 posts
-
3
votes2
answers115
viewsA: Limit decimal places
Do it like this, put the expression uniform(1, 1000) within the round function. Where parameter n is the number of decimal places you want. will stay like this: n1 = str(round(uniform(1, 1000), n))…
-
0
votes6
answers342
viewsA: Get a list of the first multiples of a number
This solution solves your problem, a list is created to store multiples of three lista_multiplos = [], the value num is constant, so a for multiplies num by five elements for n in range(1, 6):. soon…