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
🧵:
Can you guess the output of the second piece of code?🐍
Posted by Python Coding on Tuesday, 16 February 2021
0 Comments:
Post a Comment