Answers for "contanskey in python"

0

contanskey in python

d = {
  "a": 1,
  "b": 2
}

# To check if key is there in the dictionary
if "a" in d:
  print("Found")
Posted by: Guest on August-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language