Dictionary Methods

Run Settings
LanguagePython
Language Version
Run Command
#Dictionary Methods dictionary = { 'basket' : [1,2,3], 'greet' : 'hello', 'age' : 56 } print(dictionary['basket']) # print(dictionary.get('age')) print(dictionary.get('age', 55)) user2 = dict(name = 'John') print(user2)
Editor Settings
Theme
Key bindings
Full width
Lines