Question: Task 3: Given the three separate strings in the attached text file, write a Python program to find a set of words that appear at

Task 3: Given the three separate strings in the attached text file, write a Python program to find a set of words that appear at least once in all three strings (hint: union()) and another list of words that appear in each string(hint: intersection()). You are allowed to copy directly from the text file. Remember to remove comma ','and '.'.

*provided text*

Rondebosch Fountain was an ornamental Victorian drinking trough for horses, built in 1891, and stood on a traffic island on the intersection between Belmont Road and Main Road in the centre of Rondebosch in Cape Town, South Africa. It was declared a National Monument on 10 April 1964.

The new UK Independence Party (UKIP) was a major advocate of a further referendum on continued membership of what had now become the European Union, and the party's growing popularity in the early 2010s resulted in UKIP being the most successful UK party in the 2014 European Parliament election.

But Chaerea did not control the loyalty of the majority of the Praetorians, who proclaimed Caligula's uncle, Claudius, as emperor. Shortly afterwards, Chaerea was sentenced to death, one of the few assassins to be actually condemned. Chaerea requested to be executed with his personal sword, and this boon was granted.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!