midway through a sentence · confluence/python-textbok@c69d825 · GitHub
Skip to content

Commit c69d825

Browse files
committed
midway through a sentence
1 parent e5130af commit c69d825

4 files changed

Lines changed: 51 additions & 14 deletions

File tree

python_notes/Collections.rst

Lines changed: 35 additions & 6 deletions

python_notes/Loop_Control_Statements.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
***********************
2-
Loop Control Statements
2+
Loop control statements
33
***********************
44

55
Introduction
@@ -177,6 +177,17 @@ Sometimes you can avoid this by iterating over a *copy* of the list instead, but
177177

178178
.. Todo:: exercise; and we definitely need to discuss lists before this chapter.
179179

180+
Iterators
181+
=========
182+
183+
.. Todo:: move iterator discussion here
184+
185+
186+
Comprehensions
187+
==============
188+
189+
.. Todo:: This whole section. Don't forget to mention tuple, set and dict comprehensions at the end.
190+
180191
The ``break`` and ``continue`` statements
181192
=========================================
182193

@@ -238,8 +249,3 @@ This trick can help us to make this particular loop use case look better, but it
238249
age = None # we can initialise age to something which is not a valid number
239250
while not valid_number(age): # now we can use the condition before asking the user anything
240251
age = input("Please enter your age: ")
241-
242-
Comprehensions
243-
==============
244-
245-
.. Todo:: This whole section. Don't forget to mention tuple, set and dict comprehensions at the end.

python_notes/Python_Basics.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
*************
2-
Python Basics
2+
Python basics
33
*************
44

5+
.. Todo:: break this up into two chapters -- it's really long!
6+
57
Introduction
68
============
79

python_notes/Selection_Control_Statements.rst

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)