Online Courses
Free Tutorials  Go to Your University  Placement Preparation 
Goeduhub's Online Courses @ Udemy in Just INR 570/-
Online Training - Youtube Live Class Link
1 like 0 dislike
249 views
in Python Programming by Goeduhub's Expert (8.3k points)

Goeduhub's Top Online Courses @Udemy

For Indian Students- INR 360/- || For International Students- $9.99/-

S.No.

Course Name

 Coupon

1.

Tensorflow 2 & Keras:Deep Learning & Artificial Intelligence

Apply Coupon

2.

Natural Language Processing-NLP with Deep Learning in Python Apply Coupon

3.

Computer Vision OpenCV Python | YOLO| Deep Learning in Colab Apply Coupon
    More Courses

1 Answer

0 like 0 dislike
by Goeduhub's Expert (8.3k points)
 
Best answer

Dictionaries 

# Initializing the dictionary 

details = {'Title':'Dr','Given name':'Ram','Middle name':'Kumar','Surname':'Sharma','Age': 50}

# Printing the content of the dictionary

print (details['Title'])
print (details['Given name'])
print (details['Middle name'])
print (details['Surname'])
print (details['Age'])

# Adding new content to the dictionary 

details['Height'] = 5*10+2
print (details['Height'])

details[1] = 'PhD'
print (details[1])

details[2] = 'Machine Learning'
print (details[2])

# Print all the data in the dictionary 

print (details) 

3.3k questions

7.1k answers

394 comments

4.6k users

Related questions

1 like 0 dislike
6 answers 3.2k views
asked Oct 30, 2019 in Python Programming by Goeduhub Goeduhub's Expert (8.3k points)
0 like 0 dislike
1 answer 280 views
1 like 0 dislike
1 answer 165 views
asked Oct 11, 2019 in Python Programming by Goeduhub Goeduhub's Expert (8.3k points)
0 like 0 dislike
5 answers 3.4k views
asked Oct 11, 2019 in Python Programming by Goeduhub Goeduhub's Expert (8.3k points)
0 like 0 dislike
1 answer 205 views

 Goeduhub:

About Us | Contact Us || Terms & Conditions | Privacy Policy || Youtube Channel || Telegram Channel © goeduhub.com Social::   |  | 
...