Brunoroman

copy recursivo v0.1

May 9th, 2022
887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def copy(self,other):
  2.         aux=""
  3.         if(self.empty()):
  4.             return None
  5.         else:
  6.             aux=self.pop()
  7.             self.copy(other)
  8.             self.push(aux)
  9.             other.push(aux)
  10.             return(other)
Advertisement
Add Comment
Please, Sign In to add comment