d={'a':1,'b':2,'c':4}
# d is a dictionary
d['c']=3
#to modify the existing vlaue
d['d']=4
#to create a key value pair in the dictionary
print(d)
#clcoding.com
{'a': 1, 'b': 2, 'c': 3, 'd': 4}
Python Coding August 13, 2022 Python No comments
d={'a':1,'b':2,'c':4}
# d is a dictionary
d['c']=3
#to modify the existing vlaue
d['d']=4
#to create a key value pair in the dictionary
print(d)
#clcoding.com
{'a': 1, 'b': 2, 'c': 3, 'd': 4}
Free Python PDF Books
— Python Coding (@clcoding) October 6, 2022
🧵:
Top 10 Python Data Science book
— Python Coding (@clcoding) July 9, 2023
🧵:
0 Comments:
Post a Comment