Consider the following Python function.
def mystery(l): if l == []: return(l) else: return(mystery(l[1:])+l[:1])
What does mystery([22,34,18,57,92,45]) return?
It returns: [45,92,57,18,34,22]
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment