1def no_it_isnt(given_list):
2 list_of_opposite_values = []
3 for value in given_list:
4 if isinstance(value, bool):
5 list_of_opposite_values.append(not value)
6 elif isinstance(value, int) or isinstance(value, float):
7 list_of_opposite_values.append(-value)
8 elif isinstance(value, str):
9 list_of_opposite_values.append(value[::-1])
10 list_of_opposite_values.reverse()
11 return list_of_opposite_values
.....
----------------------------------------------------------------------
Ran 5 tests in 0.000s
OK