1def no_it_isnt(list):
2 result = []
3 for el in list:
4 if type(el) == int or type(el) == float:
5 result.append(-el)
6 elif type(el) == bool:
7 result.append(not el)
8 else:
9 result.append(el[::-1])
10
11 return result[::-1]
.....
----------------------------------------------------------------------
Ran 5 tests in 0.000s
OK
19.10.2023 15:03
19.10.2023 15:03