My thesaurus

thesaurusYour English teacher has asked you to write a description of your favourite imaginary pet. They want you to use plenty of adjectives in your description and suggest that you use a thesaurus to find synonyms to use in your description.

synonym

As a computer scientist, you have decided to write a computer program that will take a description of a pet as an input, lookup for synonyms in a thesaurus and output an alternative description of the pet.

Let’s look at the code

Let’s test this code

Copy the following description and use them with the code provided above. Copy the improved description in the output column.

Pet Input Output
pet-1
pets-2
pets-3
pet-4
Share Button
Posted in Computer Science, Python - Intermediate, Python Challenges Tagged with: ,

Our Latest Book

Follow this blog