python

0.0(0)
studied byStudied by 0 people
0.0(0)
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/3

flashcard set

Earn XP

Description and Tags

fuse for python study

Last updated 12:32 PM on 12/26/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

4 Terms

1
New cards

What is a dictionary in Python?

An unordered, changeable collection of key–value pairs, with unique keys.Dictionaries are used to store data values like a map, in which a key is associated with a value.

2
New cards

How to create a dictionary?

  • d = {'a': 1, 'b': 2} or d = dict(a=1, b=2).


3
New cards

How to create an empty dictionary?

d = {}.

4
New cards

How to access a value by key?

d['a'] returns the value for key 'a'.