1 / 3

In Python Language Write a statement that creates a dictionary

FOR MORE CLASSES VISIT<br>tutorialoutletdotcom <br><br>In Python Language <br>1. Write a statement that creates a dictionary containing the following key-value pairs: 'a' : 1 'b' : 2 'c' : 3<br>2. Write a statement that creates an empty dictionary.<br>

Baggins
Download Presentation

In Python Language Write a statement that creates a dictionary

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EDUCATIONAL COURSESTUTORIALOUTLET.COM

  2. In Python Language Write a statement that creates a dictionary • FOR MORE CLASSES VISIT • tutorialoutletdotcom • In Python Language  • 1. Write a statement that creates a dictionary containing the following key-value pairs: 'a' : 1 'b' : 2 'c' : 3 • 2. Write a statement that creates an empty dictionary. • 3. Assume the variable dct references a dictionary. Write an if statement that determines whether the key 'James' exists in the dictionary. If so, display the value that is associated with that key. If the key is not in the dictionary, display a message indicating so.

  3. EDUCATIONAL COURSES TUTORIALOUTLET.COM

More Related