Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reverse(text):
- flist = []
- holding = ""
- for i in str(text):
- flist.append(i)
- print(flist)
- for i in flist:
- holding = holding + flist[-1]
- del flist[-1]
- print(holding)
- print(flist)
- reverse("JamesBond")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement