How to create empty dictionary in Python

2 Answers

0 votes
dict = {}

print(dict)

print(type(dict))




'''
run:

{}
<class 'dict'>

'''

 



answered Jan 12, 2021 by avibootz
0 votes
dic = dict()

print(dic)

print(type(dic))




'''
run:

{}
<class 'dict'>

'''

 



answered Jan 12, 2021 by avibootz

Related questions

...