Dictionary In Python

Source URL: N/A

Language: python

Created on: 2020-10-18 14:39:31

# Dictionaries in Python

ages = {"John": 43, "Bob": 24, "Ruth": 76} # Marked by { at beginning and a } at end

# ^^^ Has sets of keys and values, like the 'John' and 43 set. These two values must be seperated by a colon

# ^^^ Sets of values seperated by commas.

Dictionary In Python
content_copy