Which symbol surrounds a dictionary?
Python dictionary

Flashcard
•
Others
•
University
•
Hard
Quizizz Content
FREE Resource
Student preview

7 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
{
2.
FLASHCARD QUESTION
Front
What data type is this?
quiz = {"Do you help out at home? ":"yes",
"Do you beleive in Santa? ":"yes"}}
Back
dictionary
3.
FLASHCARD QUESTION
Front
Given the dictionary person = {"name": "Alice", "age": 30}, how would you access Alice's age? Options: person[age], person["Alice", "age"], person.age, person["age"]
Back
person["age"]
4.
FLASHCARD QUESTION
Front
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use? Options: d.delete(“john”:40), d.delete(“john”), del d[“john”], del d(“john”:40)
Back
del d[“john”]
5.
FLASHCARD QUESTION
Front
What will be the output of the following Python code snippet?
d = {"john":40, "peter":45}
d["john"]
Back
40
6.
FLASHCARD QUESTION
Front
Items are accessed by their position in a dictionary and All the keys in a dictionary must be of the same type.
Back
False
7.
FLASHCARD QUESTION
Front
What is the output of the following dictionary operation: dict1 = {"name": "Mike", "salary": 8000}; temp = dict1.get("age"); print(temp)?
Back
None
Similar Resources on Quizizz
10 questions
CODE BREAKER

Flashcard
•
University
10 questions
Active Transport (Tour 161)

Flashcard
•
University
6 questions
John B Watson

Flashcard
•
University
8 questions
Marvel 101

Flashcard
•
KG - Professional Dev...
8 questions
Marvel 101

Flashcard
•
KG - Professional Dev...
7 questions
Understanding Ageism and Its Impacts - bae Reh

Flashcard
•
University
10 questions
TH6 Pacem in Terris Group 3

Flashcard
•
University
9 questions
Elements of Drama Flashcard

Flashcard
•
KG - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade