Inspiration

This project is about reverse a given string

What it does

It will reverse a given string. E.G if python is given as a input it will reverse in to onhtyp

Challenges we ran into

No

Updates

In future we change the code into to check the given string is a palindrome or not?

Code

1.n=str(input()) we get the input from the user [it check whether it is a string or not . if it was not string it was shown error].

2.a=n[::-1]it was the main part of the code to reverse the string

  1. print (a) it will print the final output as the reversed string

Built With

Share this project:

Updates