pdf, 108.03 KB
pdf, 108.03 KB
txt, 2.95 KB
txt, 2.95 KB
txt, 584 Bytes
txt, 584 Bytes
txt, 423 Bytes
txt, 423 Bytes
txt, 293.21 KB
txt, 293.21 KB
txt, 220 Bytes
txt, 220 Bytes
txt, 217 Bytes
txt, 217 Bytes
txt, 1.19 KB
txt, 1.19 KB

This is challenge to write a Shakespearean insulter.
This challenge involves basic manipulation of strings using the split() and strip() methods and handling of text files. I have included a copy of the PySimpleGUI library that allows students to add a GUI interface really easily. Just remove the .txt extension and add a dot to make it .py and import it, it shouldn’t be run directly. Other python files will need similar treatment, the file insults.txt is the data file and should be left as is.
Some extensions include asking the user for their name and personalizing the insults such as "Fred thou art a … " and issues about managing vowels can arise.

NB: The numbering system does not indicate difficulty or order of teaching, it just helps me keep track. Python files will have had their extension changed to facilitate uploading, usually I incorporate the original py ending into the filename so these can be distinguished from data files etc.

Creative Commons "Sharealike"

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have downloaded this resource can review it

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.