Question: Python Language Week 07 Problem 1: Assign the following string to a variable text, then split it into token (individual words) with the string method
Python Language
Week 07 Problem 1: Assign the following string to a variable text, then split it into token (individual words) with the string method split and then create a set from the results. Display the unique words in sorted order. 'to be or not to be that is the question' Problem 2: Given the strings s1 = 'abc def ghijkl mno' and s2 = 'hi dad', write a program that will determine whether: a. the characters of s1 are a superset of the characters in s2 b. the characters of s2 are a subset of the characters in s1 Problem 3: Given the sets {10, 20, 30} and {5, 10, 15, 20), use the mathematical set operators to produce the following results: a. {30} b. {5, 15, 30} C. {5, 10, 15, 20, 30} d. {10, 20}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
