• +91 9723535972
  • info@interviewmaterial.com

PYTHON Interview Questions and Answers

Related Subjects

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'}

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners