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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started