@@ -33,10 +33,9 @@ Our program will need to do several different things:
3333
3434Now everything seems much easier. We know how to do each of these steps
3535one 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.
4039
4140Let's start with the function that reads the question file:
4241
@@ -109,7 +108,7 @@ Wrong! The correct answer is input.
109108[' text asking function' ]
110109>> > stats(correct, wrong, answers)
111110
112- *** STATS ***
111+ **** STATS * ***
113112
114113You answered 1 questions right and 1 questions wrong.
115114These would have been the correct answers:
@@ -147,8 +146,8 @@ if __name__ == '__main__':
147146```
148147
149148The ` __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
152151we import it instead we can still run the functions one by one. If you
153152want to know more about ` __name__ ` just make a file that prints it and
154153run it in different ways.
0 commit comments