Now that it has returned the value of the smallest item in list 1, I would like it then display the name of this value on the next line. Can somebody please tell me how to get python to print the name of the smallest value in the list as well as displaying the value of it.
bpPetrol = 099.9
bpDiesel = 100.9
shellPetrol = 102.9
shellDiesel = 103.9
texacoPetrol = 100.9
texacoDiesel = 101.9
gulfPetrol = 098.9
gulfDiesel = 102.9
tescoPetrol = 100.9
tescoDiesel = 102.9
list1= [bpPetrol, shellPetrol, texacoPetrol, gulfPetrol, tescoPetrol]
list2= [bpDiesel, shellDiesel, texacoDiesel, gulfDiesel, tescoDiesel]
if searchRadius < 10:
if fuelType == "Petrol":
print("The cheapest price of petrol today is:"), min(list1)
print("")
print ("This can be found at the")position in list1("petrol station")
print("The average price of petrol at all the stations today is:"),avgPetrol
print("Just in case you were intersted, the average price of d diesel today is:"),avgDiesel