Kevin Tiller

Generation

code to explanationSat, 22 Apr 2023

counts = { 'quincy' : 1 , 'mrugesh' : 42, 'beau': 100, '0': 10} print(counts.get('kris', 0))

will print 0 because the key 'kris' is not in the counts dictionary.

Want to kickstart your project?Use the new AI Studio to create your code