Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 250f6f6

Browse files
author
Amogh Singhal
authored
Update Python_Programming_Quiz.md
1 parent 01a6672 commit 250f6f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎Python_Programming_Quiz.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,13 @@ A Thread is defined in computer science as the smallest unit that can be schedul
120120

121121
#### 7. What is the `dict()` data structure in Python ? <br>
122122
It is best to think of a dictionary as a __set of key: value pairs__, with the requirement that the __keys are unique (within one dictionary)__. <br>
123+
123124
A pair of braces creates an empty dictionary. Something like this <br>
124125
`empty_dic = {}` <br>
126+
125127
Placing a comma-separated list of key:value pairs within the braces adds initial key:value pairs to the dictionary <br>
126128
`student = {'name': "Narendra", 'class': "Junior", 'dob': "2002年01月03日"}` <br>
129+
127130
Dictionaries are sometimes found in other languages as __associative memories__ or __associative arrays__. <br>
128131
Unlike sequences, which are indexed by a range of numbers, dictionaries are indexed by __keys__, which can be any __immutable type__ <br>
129132
`strings` and `numbers` can always be keys

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /