Python Workshops for Beginners/Saturday September 27th homework: Difference between revisions

Content added Content deleted
imported>Ynasser
imported>Ynasser
Line 83: Line 83:
'''Exercise 4'''
'''Exercise 4'''


Search through the scrabble wordlist for all words that are palindromes (i.e. the same forwards and backwards).
Find

As a hint, remember that you can reverse strings and lists using the "slice" syntax:
<pre>
>>> word = "pokemon"
>>> word[::-1]
"nomekop"
</pre>