Question: 
Write a function to check whether the given key is present in the dictionary or not.


Model's Code:
def is_key_present(d, key):
    return key in d



Sample Correct Code:
def is_key_present(d,x):
  if x in d:
    return True
  else:
     return False


Asserts:
assert is_key_present({1: 10, 2: 20, 3: 30, 4: 40, 5: 50, 6: 60},5)==True
assert is_key_present({1: 10, 2: 20, 3: 30, 4: 40, 5: 50, 6: 60},6)==True
assert is_key_present({1: 10, 2: 20, 3: 30, 4: 40, 5: 50, 6: 60},10)==False


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 703 of 974: 531/703 (75.53342816500711%): success