@@ -116,31 +116,31 @@ NameError: name 'temperature' is not defined
116
116
> > There are missing parentheses and colon `():` after the function call, and the print messages don't appear aligned via whitespace
117
117
> > ~~~
118
118
> > File "<stdin>", line 1
119
- def another_function
120
- ^
121
- SyntaxError: invalid syntax
119
+ > > def another_function
120
+ > > ^
121
+ > > SyntaxError: invalid syntax
122
122
> > ~~~
123
123
> > {: .error}
124
124
> > ~~~
125
125
> > File "<stdin>", line 1
126
- print("Syntax errors are annoying.")
127
- ^
128
- IndentationError: unexpected indent
126
+ > > print("Syntax errors are annoying.")
127
+ > > ^
128
+ > > IndentationError: unexpected indent
129
129
> > ~~~
130
130
> > {: .error}
131
131
> > ~~~
132
132
> > File "<stdin>", line 1
133
- print("But at least Python tells us about them!")
134
- ^
135
- IndentationError: unexpected indent
133
+ > > print("But at least Python tells us about them!")
134
+ > > ^
135
+ > > IndentationError: unexpected indent
136
136
> > ~~~
137
137
> > {: .error}
138
138
> > Working function:
139
139
> > ~~~
140
140
> > def another_function():
141
- print("Syntax errors are annoying.")
142
- print("But at least Python tells us about them!")
143
- print("So they are usually not too hard to fix.")
141
+ > > print("Syntax errors are annoying.")
142
+ > > print("But at least Python tells us about them!")
143
+ > > print("So they are usually not too hard to fix.")
144
144
> > ~~~
145
145
> > {: .python}
146
146
> {: .solution}
0 commit comments