You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print 'kill game by input end'
while 1:
s=input("input string:")
if s== 'end':
break;
s1='';
index=0;
l=len(s);
while index<l:
s1=s1+s[l-index-1];
index=index+1;
if s1==s:
print 'the string is a palindrome'
else:
print 'the string is not a palindrome'
The text was updated successfully, but these errors were encountered:
print 'kill game by input end'
while 1:
s=input("input string:")
if s== 'end':
break;
s1='';
index=0;
l=len(s);
while index<l:
s1=s1+s[l-index-1];
index=index+1;
if s1==s:
print 'the string is a palindrome'
else:
print 'the string is not a palindrome'
The text was updated successfully, but these errors were encountered: