I'm having some issue to round up and down of a list of number to the nearest 1000.
Below is my code:
rev_list = []
for i in range(12):
rev = int(round(random.normalvariate(100000, 12000)))
rev_list.append(rev)
print(rev_list)
The output is:
[97277, 96494, 104541, 132060, 98179, 87862, 84718, 95391, 94674, 89773, 92790, 86122]
I would like to round the list to the nearest 1000. How can I do that?