Python Sequences and Files
Posted on Aug 11th, 2020
We can use the generic term sequence for any object that provides an ordered structure for a number of items, such as a string (a group of characters), a list, or a dictionary (keys and values).
Today’s topics
- Bread & butter sequence types:
list
,str
,tuple
, anddict
- Basic sequence keywords and operations:
for
andin
- Working with files
Tomorrow’s topics
- Advanced indexing and slicing
- Comprehensions for lists, dicts, and generators
- Important sequence methods
🐍 Code Breaks
Try working with lists Practice with list comprehensions
Projectm
You’ll be doing this assignment for the next two days, and we’ll work on parts of it in class.