InfoDb Input
with input!
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])