Skip to content

Commit 79ad1fb

Browse files
authored
fix gaps in solution block
see carpentries/lesson-transition#66
1 parent 6fa30bb commit 79ad1fb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

_episodes/15-scope.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -116,31 +116,31 @@ NameError: name 'temperature' is not defined
116116
> > There are missing parentheses and colon `():` after the function call, and the print messages don't appear aligned via whitespace
117117
> > ~~~
118118
> > File "<stdin>", line 1
119-
def another_function
120-
^
121-
SyntaxError: invalid syntax
119+
> > def another_function
120+
> > ^
121+
> > SyntaxError: invalid syntax
122122
> > ~~~
123123
> > {: .error}
124124
> > ~~~
125125
> > 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
129129
> > ~~~
130130
> > {: .error}
131131
> > ~~~
132132
> > 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
136136
> > ~~~
137137
> > {: .error}
138138
> > Working function:
139139
> > ~~~
140140
> > 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.")
144144
> > ~~~
145145
> > {: .python}
146146
> {: .solution}

0 commit comments

Comments
 (0)