Start with Python
This commit is contained in:
12
1- python/12-is-palindrome/palindrome.py
Normal file
12
1- python/12-is-palindrome/palindrome.py
Normal file
@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def is_palindrome(string):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
#TESTS
|
||||
|
||||
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"
|
Reference in New Issue
Block a user