@@ -33,10 +33,9 @@ Our program will need to do several different things:
33
33
34
34
Now everything seems much easier. We know how to do each of these steps
35
35
one by one, but doing it all at once would be difficult. In situations
36
- like this ** it's important to [ define
37
- functions] ( defining-functions.md ) ** . We are going to write a
38
- ` read_questions ` function, an ` ask_questions ` function and a ` stats `
39
- function.
36
+ like this it's important to [ define functions] ( defining-functions.md ) .
37
+ We are going to write a ` read_questions ` function, an ` ask_questions `
38
+ function and a ` stats ` function.
40
39
41
40
Let's start with the function that reads the question file:
42
41
@@ -109,7 +108,7 @@ Wrong! The correct answer is input.
109
108
[' text asking function' ]
110
109
>> > stats(correct, wrong, answers)
111
110
112
- *** STATS ***
111
+ **** STATS * ***
113
112
114
113
You answered 1 questions right and 1 questions wrong.
115
114
These would have been the correct answers:
@@ -147,8 +146,8 @@ if __name__ == '__main__':
147
146
```
148
147
149
148
The ` __name__ ` variable is set differently depending on how we run the
150
- file, and ** it's ` '__main__' ` when we run the file directly instead of
151
- importing** . So if we run the file normally it asks us the words, and if
149
+ file, and it's ` '__main__' ` when we run the file directly instead of
150
+ importing. So if we run the file normally it asks us the words, and if
152
151
we import it instead we can still run the functions one by one. If you
153
152
want to know more about ` __name__ ` just make a file that prints it and
154
153
run it in different ways.
0 commit comments