fork download
  1. def mystery(l):
  2. if l == []:
  3. return (l)
  4. else:
  5. return (l[-1:] + mystery(l[:-1]))
  6. Mystery [3,2,8,7,5]
Runtime error #stdin #stdout #stderr 0.01s 27720KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 6, in <module>
NameError: name 'Mystery' is not defined