15 lines
385 B
Python
15 lines
385 B
Python
import sys
|
||
|
||
def is_palindrome(string):
|
||
pass
|
||
##this function should only check validity of the string, and rely on other functions for string operations
|
||
|
||
|
||
|
||
|
||
#assert statements
|
||
|
||
assert(is_palindrome('greg is the man') == False), "Presumably random sentence should return false"
|
||
|
||
assert(is_palindrome('No Mel Gibson is a casino’s big lemon') == True), "Palindrome should return true"
|