print("What is the variable name/key?", "value?", "type?", "primitive or collection, why?")
name = "Lydia Cho"
print("name", name, type(name))

print()

print("What is the variable name/key?", "value?", "type?", "primitive or collection, why?")
age = 16
print("age", age, type(age))

print()

print("What is variable name/key?", "value?", "type?", "primitive or collection?")
print("What is different about the list output?")
langs = ["Python", "JavaScript", "Java"]
print("langs", langs, type(langs), "length", len(langs))
print("- langs[0]", langs[0], type(langs[0]))

print()
What is the variable name/key? value? type? primitive or collection, why?
name Lydia Cho <class 'str'>

What is the variable name/key? value? type? primitive or collection, why?
age 16 <class 'int'>

InfoDb = []

InfoDb.append({
    "FirstName": "Lydia",
    "LastName": "Cho",
    "DOB": "April 12",
    "Residence": "San Diego",
    "Email": "lydiac55288@stu.powayusd.com"
    })
print(InfoDb)

def print_data(d_rec):
    print(d_rec["FirstName"], d_rec["LastName"])  
    print("\t", "Residence:", d_rec["Residence"]) 
    print("\t", "Birth Day:", d_rec["DOB"])
    print()


def for_loop():
    print("For loop output\n")
    for record in InfoDb:
        print_data(record)

for_loop()

def while_loop():
    print("While loop output\n")
    i = 0
    while i < len(InfoDb):
        record = InfoDb[i]
        print_data(record)
        i += 1
    return

while_loop()
[{'FirstName': 'Lydia', 'LastName': 'Cho', 'DOB': 'April 12', 'Residence': 'San Diego', 'Email': 'lydiac55288@stu.powayusd.com'}]
For loop output

Lydia Cho
	 Residence: San Diego
	 Birth Day: April 12

While loop output

Lydia Cho
	 Residence: San Diego
	 Birth Day: April 12

FirstName = input("What is your first name?")

FavoriteBread = input("What is your favorite bread?")

FavoriteColor = input("What is your favorite color?")

print(FirstName)
print(FavoriteBread)
print(FavoriteColor)
Lydia
Cheesecake Factory Bread
grey
def recursive_loop(i):
    if i < len(InfoDb):
        record = InfoDb[i]
        print_data(record)
        recursive_loop(i + 1)
    return
    
print("Recursive loop output\n")
recursive_loop(0)
Recursive loop output

Lydia Cho
	 Residence: San Diego
	 Birth Day: April 12

print("Nested Loop")

for i in range(1, 6):
    for j in range(1, 6):
        print(i * j, end=' ')
    print()
Nested Loop
1 2 3 4 5 
2 4 6 8 10 
3 6 9 12 15 
4 8 12 16 20 
5 10 15 20 25