readmes yo
This commit is contained in:
@ -1,16 +1,13 @@
|
||||
Sarah Palindrome
|
||||
============
|
||||
================
|
||||
|
||||
Write a function that when given a word or sentence returns True if it is a palindrome and False if it isn't.
|
||||
Write a function that when given a word or sentence returns True if it is a palindrome and False if it isn't.
|
||||
|
||||
Your program should accept input using sys.argv.
|
||||
|
||||
python3 palindrome.py Taco Cat ###returns true
|
||||
|
||||
###OOP
|
||||
|
||||
Let's make sure this program adheres to good object oriented design. Your main function should ONLY check if it is a palindrome and return True or False. Any other functions you might need, like string operations - should be seperated. Every function should do only one thing.
|
||||
|
||||
```
|
||||
python3 palindrome.py Taco Cat # returns true
|
||||
```
|
||||
You will want to make this case insensitive (Cat == cat). You can do this by make all letters upper or lower case.
|
||||
You will also want to use strip to remove all non word characters.
|
||||
|
||||
Make the asserts pass and write more assert statements to test your code.
|
||||
|
||||
|
Reference in New Issue
Block a user