Question: 
Write a function to remove particular data type elements from the given tuple.


Model's Code:
def remove_datatype(tup, data_type):
    return [item for item in tup if not isinstance(item, data_type)]



Sample Correct Code:
def remove_datatype(test_tuple, data_type):
  res = []
  for ele in test_tuple:
    if not isinstance(ele, data_type):
      res.append(ele)
  return (res) 


Asserts:
assert remove_datatype((4, 5, 4, 7.7, 1.2), int) == [7.7, 1.2]
assert remove_datatype((7, 8, 9, "SR"), str) == [7, 8, 9]
assert remove_datatype((7, 1.1, 2, 2.2), float) == [7, 2]


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

Test 533 of 974: 393/533 (73.73358348968105%): success