Preparing a report
Once again, you scraped Wikipedia pages. This time, you searched for the description of useful tools used for text mining. Your first task is to prepare a report about different tools you found. You want to format the information contained in the dataset to be printed out as: (tool) is a (description)
.
In this case, template strings are the best solution to interpolate data generated by external sources into an already created template.
For this example, the variables tool1
, tool2
and tool3
contain three article titles. Each variable description1
, description2
and description3
contains the corresponding article description.
If you want to explore the variables, you can use print()
to view them in the IPython Shell.
This exercise is part of the course
Regular Expressions in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Import Template
____