|
1 | 1 | # flake8: NOQA E501 |
2 | | -frommain.textimportPage,VerbatimStep,MessageStep |
3 | | -frommain.textimportStep |
| 2 | +frommain.textimportMessageStep,Page,Step,VerbatimStep |
4 | 3 |
|
5 | 4 |
|
6 | 5 | classIntroducingTheShell(Page): |
7 | | - |
8 | 6 | classfirst_expression(VerbatimStep): |
9 | 7 | """ |
10 | 8 | At the bottom right of the screen is the *shell*. This is a place for running small bits of Python code. Just type in some code, press enter, and it'll run! Try it now: |
@@ -49,10 +47,10 @@ class x_to_multiple(MessageStep): |
49 | 47 | program="3 x 4" |
50 | 48 |
|
51 | 49 | defcheck(self): |
52 | | -return'x'inself.input |
| 50 | +return"x"inself.input |
53 | 51 |
|
54 | 52 | defcheck(self): |
55 | | -returnself.input_matches(r'\d[-*/]\d') |
| 53 | +returnself.input_matches(r"\d[-*/]\d") |
56 | 54 |
|
57 | 55 | final_text=""" |
58 | 56 | Excellent! Keep experimenting. When you're ready, click 'Next' to continue. |
|