Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.53 KB

File metadata and controls

49 lines (35 loc) · 1.53 KB

Unit 04

Repo Root
Lesson Slides
Lesson Slides PDF
Exercises
Exercises (solutions)
Review Slides
Review Exercises
Review Exercises (solutions)

Strings

Concepts & Objectives

  1. Initialize string variables
  2. Access values from string variables
  3. Manipulate string values with immutability

Key Terminology

Keyword – character sequence used for Python. No variables may be named ‘in’.

Substring – a string inside a string

Index – number (key) that accesses a value from a string (lock)

Expression – any code that be on the right side of an = sign

Method – function that exists off a string, accessed by the dot . operator (str.split)

Chaining – calling string methods after another ( str.lower().capitalize() )

Immutable – can’t directly change strings, can only make new strings from strings

Idempotent – same input, ALWAYS same output. Reliable code that d

String – immutable character sequences with reliable, idempotent methods

Delimiter – substring that signals the beginning or end of other data inside a string

Lesson

Start of Class

  1. Log into WiFi network.
  2. CTRL + ALT + T to open terminal.
  3. cd ~/tech-mentorship-2425 (remember to press TAB to autocomplete)
  4. git stash
  5. gh repo sync
  6. jupyter lab

End of Class

  1. git stash