Question:-
How will you create a dictionary in python?
Answer:-
Dictionaries are enclosed by curly braces ({ }) and values can be assigned and accessed using square braces ([]).
dict = {} dict['one'] = "This is one" dict[2] = "This is two" tinydict = {'name': 'john','code':6734, 'dept': 'sales'}
![image](/images/gyapti/user/93/anilbisht.jpg)
Anil Bist
Skills Python
Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,Location :-Dehradun,Dehradun,Uttarakhand,
Description:-
I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore
Students (3)
Ask
![](/Classroom/images/question.png)
![image](/images/gyapti/user/396/img_JPG.jpg)
Vikash
Ask
![](/Classroom/images/question.png)
![image](/images/gyapti/user/93/anilbisht.jpg)
Anil
Ask
![](/Classroom/images/question.png)
![image](/images/gyapti/user/93/anilbisht.jpg)
Anil
Recommended Classes
![image](/images/gyapti/user/93/anilbisht.jpg)
I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore an...
Professional
![image](/images/gyapti/user/673/IMG_2472_JPG.jpg)
Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional
![image](/images/gyapti/user/673/IMG_2472_JPG.jpg)
Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional