Chapter 4 ยท Part I: Basics
Working with Lists
Book: Ch. 4, 'Working with Lists', pp. 49โ70
Pages this chapter covers
- Looping Through an Entire Listp. 49
- A Closer Look at Loopingp. 50
- Doing More Work Within a for Loopp. 51
- Doing Something After a for Loopp. 52
- Avoiding Indentation Errorsp. 53
- Forgetting to Indentp. 53
- Forgetting to Indent Additional Linesp. 54
- Indenting Unnecessarilyp. 54
- Indenting Unnecessarily After the Loopp. 55
- Forgetting the Colonp. 55
- Making Numerical Listsp. 56
- Using the range() Functionp. 57
- Using range() to Make a List of Numbersp. 58
- Simple Statistics with a List of Numbersp. 59
- List Comprehensionsp. 59
- Working with Part of a Listp. 61
- Slicing a Listp. 61
- Looping Through a Slicep. 62
- Copying a Listp. 63
- Tuplesp. 65
- Defining a Tuplep. 65
- Looping Through All Values in a Tuplep. 66
- Writing Over a Tuplep. 67
- Styling Your Codep. 68
- The Style Guidep. 68
- Indentationp. 68
- Line Lengthp. 69
- Blank Linesp. 69
- Other Style Guidelinesp. 69
- Summaryp. 70
Notes
Notes are not written yet
The section list above is only a map of the book, with printed page numbers, so you can read the chapter and come back. Original notes for this chapter are still to come.
No exercise yet
An original, auto-checked exercise for this chapter is not in this version.
No quiz yet
A proficiency quiz for this chapter is not in this version.