Skip to content

Instantly share code, notes, and snippets.

@Ikhiloya
Created October 25, 2018 23:14
Show Gist options
  • Save Ikhiloya/2ca48e91cd2d9f8db6fac69685f7f425 to your computer and use it in GitHub Desktop.
Save Ikhiloya/2ca48e91cd2d9f8db6fac69685f7f425 to your computer and use it in GitHub Desktop.
function to reverse a string
def reverse(text):
string_len = len(text)
new_word = ''
for i in text:
new_word += text[string_len -1]
string_len -=1
return new_word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment