CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Stylometry_exercise
String Processing
Today we will do some string processing and work with repeat loops.
Exercise
Define a variable to contain a sentence with commas and a period (and possibly other punctuation) and with standard capitalization. For instance:
Then process the sentence to arrive at a list of the constituent words, all lowercase, with no whitespace and no punctuation.
Exercise
Below is a list of email addresses of students in the class. I want to use this to make a group for bulk email using Outlook Webmail. Unfortunately Outlook requires that email addresses be separated by a semicolon when they are entered in bulk. Can you use Python to make a semicolon-separated list of email addresses?
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]