1def no_it_isnt(args):
2 '''Take a list of values and return list with their opposite values.'''
3 result = []
4 for element in args:
5 if type(element) in (int, float):
6 result.append(element * -1)
7 continue
8 if type(element) == str:
9 result.append(element[::-1])
10 continue
11 if type(element) == bool:
12 result.append(not element)
13 continue
14 return result[::-1]
.....
----------------------------------------------------------------------
Ran 5 tests in 0.000s
OK