1def no_it_isnt(input_list):
2 output_list = []
3
4 for elem in input_list:
5 if type(elem) == int or type(elem) == float:
6 output_list.append(elem * -1)
7 if type(elem) == bool:
8 output_list.append(not elem)
9 if type(elem) == str:
10 output_list.append(elem[::-1])
11
12 return output_list[::-1]
.....
----------------------------------------------------------------------
Ran 5 tests in 0.000s
OK
18.10.2023 11:48