python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
S1=input("enter a string:") length=len(string) mid=length/2 rev=-1 for a in range(mid): if string[a]==string[rev]: a+=1 rev-=1 else: print("palindrome") break else: print("not palindrome")
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up