Answer to Question #80523 in Python for priyanka kota

Question #80523
def mystery(l):
if l == []:
return (l)
else:
return (l[-1:] + mystery(l[:-1]))
What does mystery([13,23,17,81,15]) return?
1
Expert's answer
2018-09-06T04:49:05-0400
[15, 81, 17, 23, 13]

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS