How to check value exists in the dictionary or not using
Answers
Answered by
0
Answer:
check if key exists in dictionary using get() Dictionary provides a method get() that accepts a key and default value. If given key exists in dictionary then it returns its value, If given key does not exists in dictionary then it returns the passed default value argument
Answered by
4
Explanation:
check if key exists in dictionary using get() Dictionary provides a method get() that accepts a key and default value. If given key exists in dictionary then it returns its value, If given key does not exists in dictionary then it returns the passed default value argument
HOPE IT HELPS YOU! MARK IT AS BRAINLIEST AND FOLLOW ME UP!
Similar questions