My Team
Team_Info = []
Team_Info.append({
"First_Name": "Mirza",
"Middle_Initial": "H.",
"Last_Name": "Beg",
"Date_of_Birth": "December 6th, 2007",
"Grade": "10th",
"Residence": "San Diego",
"Email": "mirzahbeg123@gmail.com",
"Likes": ["Video Games", "Coding", "Working Out",]
})
Team_Info.append({
"First_Name": "Tirth",
"Middle_Initial": "S.",
"Last_Name": "Thakkar",
"Date_of_Birth": "December 26th, 2005",
"Grade": "11th",
"Residence": "San Diego",
"Email": "tirth1226@gmail.com",
"Likes": ["Reading", "Board Games",]
})
Team_Info.reverse()
print(Team_Info)
def print_data(d_rec):
print("\x1b[1;93m", d_rec["First_Name"], d_rec["Middle_Initial"], d_rec["Last_Name"], "\x1b[0m")
print("")
print("\t", "\x1b[3;96m", "Grade: ", d_rec["Grade"], "\x1b[0m")
print("")
print("\t", "\x1b[3;94m", "Birthday:", d_rec["Date_of_Birth"], "\x1b[0m")
print("")
print("\t", "\x1b[3;96m", "Residence:", d_rec["Residence"], "\x1b[0m")
print("")
print("\t", "\x1b[3;94m", "Interests:", d_rec["Likes"], "\x1b[0m")
print("")
print("\t", "\x1b[3;96m", "Contact Info:", d_rec["Email"], "\x1b[0m")
print()
# for loop algorithm iterates on length of InfoDb
def for_loop():
for record in Team_Info:
print_data(record)
for_loop()