Everytime I run this it says test is not defined . I don’t understand. Can
someone please help correct?
#Question 10
def reverse(mystr):
reversed = ''
for char in mystr:
reversed = char + reversed
return reversed
def is_palindrome(myStr):
if myStr in reverse(myStr):
return True
else:
return False
test(is_palindrome("abba"))
test(not is_palindrome("abab"))
test(is_palindrome("tenet"))
test(not is_palindrome("banana"))
test(is_palindrome("straw warts"))
test(is_palindrome("a"))
test(is_palindrome(""))
-Jeremy Gainey
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor