Reversing A String In Python Language Or Python 3




#Stringrev.py
#Here we Use The Indexes in reversing  a string and the code will be:
def reverse(a):
    return (a[::-1])
print(reverse("Your String"))
# Here I used A function To Make It Easy

Comments

Popular posts from this blog

MY FIRST MYSQL PROJECT I EVER MADE

CALCULATING FACTORIALS IN PYTHON LANGUAGE

A SIMPLE GAME FOR A BEGINNER IN PYTHON WITH ONLY TWO MODULES