Skip to content

Commit a24708f

Browse files
committed
dictionary literals
1 parent f2f3094 commit a24708f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Dictionary/DIctionary_Literals.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Dictionary Literals(Constants)
2+
3+
# Dictionary literals use curly braces and have a list of key : value pairs
4+
5+
# You can make an empty dictionary using empty curly braces
6+
7+
jjj = { 'chuck' : 1 , 'fred' : 42 , 'jan' : 100 }
8+
print(jjj)
9+
10+
ooo = { }
11+
print(ooo)

0 commit comments

Comments
 (0)