Lecture Three -- Outline
Learning Objectives
- String literals
- String operators
- String methods including split and splitlines
- Immutability
Announcements
- HW3 is due tomorrow
- The course notes are an amazing resource, videos, visualizer, run code
- Office Hours
- Start getting ready for the quiz.
- Antman on Friday
- Lots of ways to solve different problems!
Lecture Plan
- Announcements
- String literals
- Quotes, Newlines, Escape Characters (of length one)
- Multiline strings
- String module
- String operators
- \(+\) and \(*\)
- in operator
- Indexing
- Slicing
- Looping over strings
- With and without indexes
- Split and splitlines
- Example: isPalindrome
- Immutability
- Attendance Check
- String Builtins
- String Methods
- Basic String formatting
- Don't worry about precision with floats
- Studying for the quiz
- Examples of string Code Tracing and ROC
Moved Topics
- File I/O
- Part of String formatting
HW3
- vowelCount
- areAnagrams
- patternMessage