1def no_it_isnt(items):
2 reversed_list = []
3
4 for item in reversed(items):
5 if isinstance(item, str):
6 reversed_list.append(item[::-1])
7 elif isinstance(item, bool):
8 reversed_list.append(not item)
9 else:
10 reversed_list.append(-item)
11
12 return reversed_list
13
.....
----------------------------------------------------------------------
Ran 5 tests in 0.000s
OK