Example & Tutorial understanding programming in easy ways.

How we van delete the items from the Dictionary in Python ?

program:

d={1:"First",2:"Second",3:"Third"}

print(d)

del(d[2])

print(d)

output:

{1: 'First', 2: 'Second', 3: 'Third'}

{1: 'First', 3: 'Third'}

Read More →