import random
posicao = [40.51, 30.52, 30.31]
coordenadas = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120]
for indice in range(0, len(posicao)):
if posicao[indice]>40:
for indice2 in range(indice*4, indice*4+4):
coordenadas[indice2] = random.randrange(0,200)
print(coordenadas)
aW1wb3J0IHJhbmRvbQoKcG9zaWNhbyA9IFs0MC41MSwgMzAuNTIsIDMwLjMxXQpjb29yZGVuYWRhcyA9IFsxMCwgMjAsIDMwLCA0MCwgNTAsIDYwLCA3MCwgODAsIDkwLCAxMDAsIDExMCwgMTIwXQoKZm9yIGluZGljZSBpbiByYW5nZSgwLCBsZW4ocG9zaWNhbykpOgoJaWYgcG9zaWNhb1tpbmRpY2VdPjQwOgoJCWZvciBpbmRpY2UyIGluIHJhbmdlKGluZGljZSo0LCBpbmRpY2UqNCs0KToKCQkJY29vcmRlbmFkYXNbaW5kaWNlMl0gPSByYW5kb20ucmFuZHJhbmdlKDAsMjAwKQoJCgkKcHJpbnQoY29vcmRlbmFkYXMp
[122, 41, 144, 17, 50, 60, 70, 80, 90, 100, 110, 120]