Example & Tutorial understanding programming in easy ways.

How do you check the presence of a Key in a Dictionary?

program:

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

print(2 in d)

print(10 in d)

output:

True

False

Read More →