1def no_it_isnt(input_list):
2
3 input_list.reverse()
4 result = []
5 for item in input_list:
6 if type(item) == int or type(item) == float:
7 result.append(item*-1)
8 elif type(item) == bool:
9 result.append(not item)
10 else:
11 result.append(reverse_string(item))
12
13 return result
14
15def reverse_string(string):
16 res = ""
17
18 for character in string:
19 res = character + res
20
21 return res
.....
----------------------------------------------------------------------
Ran 5 tests in 0.000s
OK
19.10.2023 08:51
19.10.2023 08:51
19.10.2023 08:52