Week 7 subject 1: Lists (cont.)
- Splitting strings into lists with .split()
- Joining lists into strings with .join()
- Replacing a substring in a string with .replace(). Also can using slicing of strings.
- Can use loops to process strings, example:
- Get a line of input with input()
- Break line into list of words
- For each word change the first and last character to "*" and print
No comments:
Post a Comment