trying to get the output:
Kayleigh:
True 100
True 80
True 67
True 100
True 89
from the dictionary I made:
kayleigh = {'name':'Kayleigh',
'grades':[100,80,67,100,89],
'attendance':['True','True','True','True','True']}
since the grades and attendance both have 5 items so I try to match them, but there's this error message saying that the format is not built in dictionary.
AttributeError Traceback (most recent call last) in ----> 1 print ("Kayleigh:",{},{}.format(kayleigh.get('attendance'),kayleigh.get('grades')))
AttributeError: 'dict' object has no attribute 'format'