+ 5
A key is a small piece of metal that is fashioned with notches for a specific lock. In other words, a key grants access to what is locked. In python, a key is a value in a dictionary. To access data in a dictionary you need to provide the dictonary name along with it's key in square brackets: data = {'a': 1, 'b': 2, 'c': 3} print(data['b']) #output 2
9th Mar 2022, 9:37 PM
Slick
Slick - avatar