SHARE
TWEET

Invertir array en python

a guest Nov 27th, 2010 840 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def reverse(list):
  2.         if len(list)==1:
  3.                 return list
  4.         else:
  5.                 return list[-1]+reverse(list[:-1])
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Top