0
I can't get output for this program. But the program is right. What's the output?
def mystery(l): if len(l) < 2: return (l) else: return ([l[-1]] + mystery(l[1:-1]) + [l[0]]) What does mystery([23,13,71,66,28,55]) return?
4 Respuestas
+ 2
You just have to write:
print ( >your last line here<)
instead of your last line. Then you get the output.
0
Please just put the code into Code Playground or your Python at home and check it for yourself.
0
it better you write the code on code play ground, then share the link here, that way people will be able to help you easily