Dictionary Elements update , delete

  Python

Email

# this fuction are using the dist

diste= {‘name’:’coding anil’, ‘age’:3}

print (diste[‘name’])

# this coding is the update codig

diste[‘name’]= “this best coding anil”

print(diste[‘name’])

# delete coding

del diste[‘age’]

print(diste)

Spread the Code

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of