[ create a new paste ] login | about

Link: http://codepad.org/UQX2pcqA    [ raw code | output | fork ]

jonlyles - Python, pasted on Nov 9:
1
2
3
4
5
6
7
8
9
def reverse(text):
  word = ""
  l = len(text) - 1
  while l >= 0:
    word = word + text[l]
    l -= 1
  return word

print reverse("fym")


Output:
1
myf


Create a new paste based on this one


Comments: