Это то, что вы ищете?
# Create blank dictionary
d = {}
# The for loop executes until user has filled in each statement
for i in range(5):
brand = str(input("Enter you car brand: "))
model = str(input("Enter you car model: "))
begodometer = str(input("Enter your starting odometer reading: "))
endodometer = str(input("Enter your ending odometer reading: "))
estmpg = str(input("Enter estimated miles per gallon: "))
#the "ID" is the iteration # but could be a random # if you like
d[i]={"brand":brand,
"model":model,
"begodometer":begodometer,
"endodometer":endodometer,
"estmpg":estmpg}
# Print dictionary
print(d)
Каждая «запись» - это новый словарь.
Приветствия!