Extract dict value
Given a list and a key, return a value by that key.
Sample Code:
def findVal(d,key):
# Enter your logic here...
Examples:
Input: {'lang1':'Javascript','lang2':'Python'},'lang2'
Output: 'Python'
Explanation: Accessing key 'lang2' will return the value 'Python'.
Input: {1:'Web Dev',2:'Data Sc'},1
Output: 'Web Dev'
Explanation: Accessing key 1 will return the value 'Web Dev'.