List on python appending always the same value

I have the following code inside a while loop. if gender == 0 and len(men) < 51 : height = float((random.uniform(1.3, 1.9) + (random.randint(10, 20)/100.)).__format__('.2f')) weight = float((random.uniform(45, 100) * height).__format__('.2f')) attr['height'] = height attr['weight'] = weight men.append(attr) So this code always gives some random height and random weight. But outsite de loop (when it … Read more