1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
pente_max_parcelles = input("pente max = ")
altitude_max_parcelle = input("altitude max = ")
orientation_max_parcelle = input("orientation max = ")
nom_proprietaire = input("nom_proprietaire = ")
compt = 0
mes_parcelles = [12, 128, 256, "POSTEL"], [8, 140, 16, "RADE"], [40, 1458, 30, "POLO"], [36, 540, 30, "RADI"], [69, 1240, 201, "XAVI"], [45, 30, 58, "SAID"]
if pente_parcelles == "":
pente_parcelles = int(pente_parcelles)
pente_parcelles = 99999
else:
pente_parcelles = int(pente_parcelles)
if altitude_parcelle == "":
altitude_parcelle = int(altitude_parcelle)
altitude_parcelle = 99999
else:
altitude_parcelle = int(altitude_parcelle)
if orientation_parcelle == "":
orientation_parcelle = int(orientation_parcelle)
orientation_parcelle = 99999
else:
orientation_parcelle = int(orientation_parcelle)
for raw in mes_parcelles:
if (raw[0] < pente_parcelles) and (raw[1] < altitude_parcelle) and (raw[2] < orientation_parcelle) and (raw[3] == nom_proprietaire):
print (mes_parcelles[compt])
else:
compt = compt + 1 |
Partager