06/12/2025

Week 7 Learning Summary

 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:
    1. Get a line of input with input()
    2. Break line into list of words
    3. For each word change the first and last character to "*" and print

No comments: