people = {"Jenn" : ['renter', 'large room'],
"Lana" : ['renter', 'small room'],
"Ricky" :['owner', 'large room']
}
Is there a way to access each individual value for a given key via for loop to print the stats of each person? I'm relatively new to Python and I'm having troubles searching for this exact scenario. I'm familiar with f-string formatting.
Expected output for print()
or sys.stderr.write()
Jenn is the renter of a large room.
Lana is the renter of a small room.
Rickey is the owner of a large room.