CHAINENO NETVITY
3.4.2: Set theory methods
The following program includes 10 cities that two people have visited. Write a program that creates:
1. A set of all cities that contains all of the cities both people have visited.
2. A set of same cities that contains only cities found in both person1_cities and person2_cities.
3. A set of different_cities that contains cities found only in person1_cities or only in person2_cities.
Sample output for all cities: 'Accra, Anaheim, Bangkok, Bend, Boise, Buenos Aires, Cairo, Edmonton, Lima, London, Memphis, Orlando, Paris, Seoul, Tokyo, Vancouver, Zurich'
NOTE: Because sets are unordered, they are printed using the sorted() function here for comparison.
75422972634
person2_cities = 'Accra, Orlando, Tokyo, Paris, Anaheim, Buenos Aires, London, Li'
# Use set methods to create sets all_cities, same_cities, and different_cities
Your solution goes here:
print(sorted(all_cities))
print(sorted(same_cities))
print(sorted(different_cities))