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

imported>Ynasser
imported>Ynasser
Line 56:
 
== Wordplay Exercises ==
Here's a [https://openhatch.org/wiki/Wordplay_handout link] to the Wordplay handout if you need a review. Exercise 3 requires knowledge of regular expressions. If you need solutions to the wordplay exercises to see example of regular expressions in action, they can be found here: [https://github.com/jesstess/Wordplay]
 
 
'''Exercise 3'''
 
Write a program to find all words in the scrabble dictionary which contain a q which isn't followed by a u.
 
To do this problem, you'll need something which isn't covered in the Wordplay handout. If you want to look for a string which contains "in" but isn't immediately followed by a "g", you'd do this:
 
<pre>
>>>
</pre>
 
'''Exercise 4'''
Anonymous user