Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
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]