Write a statement that creates a dictionary containing the following key-value pairs:
'a' : 1
'b' : 2
'c' : 3
The following statement is used to creates a dictionary containing the given key-value pairs is as follows:
my_dict = {'a': 1, 'b': 2, 'c': 3}
Explanation:
my_dict
with three key-value pairs.'a'
, 'b'
, and 'c'
, and the corresponding values are integers 1
, 2
, and 3
, respectively.Sample example Code:
my_dict = {'a': 1, 'b': 2, 'c': 3}
print(my_dict)
Executed Output:
{'a': 1, 'b': 2, 'c': 3}