Python---dict
'''help---dict 1. key-value 2. key is not repeated, later key value will cover old key value ''' dict1={'name':'xfei','age':20, 'favorite':['swimming','singing','film']} print(dict1) print(dict1['name']) dict1['age']=28 print(dict1) print(len(dict1)) print('age' in dict1) print(dict1['favorite'])