The Contents

This code has a list of dictionaries, the first of which is full of data and the second is empty. The loop takes the keys and asks you what you want to assign them to. It then prints that data in a easy to understand way. sssssss

InfoDb = []

# Starter InfoDb
InfoDb.append({
    "First Name" : "Dash",
    "Last Name"  : "Penning",
    "Current APs" : ["CSP", "Calc BC", "Physics C"],
    "High School" : "Del Norte",
    "Phone Model" : "Iphone 8"
})

# Blank InfoDb entry
InfoDb.append({
    "First Name" : "",
    "Last Name"  : "",
    "Current Advanced Placement Classes" : [],
    "High School" : "",
    "Phone Model" : ""
})

# Takes the keys and uses them to ask you what you change in the data
def changeData(list):
    for each in list.keys():
        print("What is your "+ each.lower() + "?:")
        inp = input()
        list[each] = inp


# Quick and dirty way to print the data (works with any infoDb)
def data_print(lest):
    for each in lest.keys():
        print("\t" + each + ": " + str(lest[each]))


# Way to print the data in a nice way
def data_print_fancy(list):
    print("Name:", list["First Name"], list["Last Name"] + 
    "\n \t Attending High School At:", list["High School"] +
    "\n \t Current Phone Model:", list["Phone Model"] +
    "\n \t Current APs:", end="")
    print(" " + list["Current Advanced Placement Classes"])
    print()

# Calling the above commands
changeData(InfoDb[1])
data_print_fancy(InfoDb[1])
What is your first name?:
What is your last name?:
What is your current advanced placement classes?:
What is your high school?:
What is your phone model?:
Name: Dash Penning
 	 Attending High School At: Del Norte
 	 Current Phone Model: IPhone 8
 	 Current APs: APCSP, Calc BC, AP Physics C