1def contradict(argument):
2 if type(argument) is bool:
3 return not argument
4 elif type(argument) is str:
5 return argument[::-1]
6 else:
7 return -argument
8
9def no_it_isnt(arguments):
10 return list((map(contradict, arguments)))[::-1]
.....
----------------------------------------------------------------------
Ran 5 tests in 0.000s
OK
f | 1 | def contradict(argument): | f | 1 | def contradict(argument): |
2 | if type(argument) is bool: | 2 | if type(argument) is bool: | ||
3 | return not argument | 3 | return not argument | ||
4 | elif type(argument) is str: | 4 | elif type(argument) is str: | ||
n | 5 | return argument[-1::-1] | n | 5 | return argument[::-1] |
6 | else: | 6 | else: | ||
7 | return -argument | 7 | return -argument | ||
8 | 8 | ||||
9 | def no_it_isnt(arguments): | 9 | def no_it_isnt(arguments): | ||
t | 10 | return list((map(contradict, arguments)))[-1::-1] | t | 10 | return list((map(contradict, arguments)))[::-1] |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|