Skip to content

Commit

Permalink
fix gaps in solution block
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed May 5, 2023
1 parent 6fa30bb commit 79ad1fb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions _episodes/15-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,31 +116,31 @@ NameError: name 'temperature' is not defined
> > There are missing parentheses and colon `():` after the function call, and the print messages don't appear aligned via whitespace
> > ~~~
> > File "<stdin>", line 1
def another_function
^
SyntaxError: invalid syntax
> > def another_function
> > ^
> > SyntaxError: invalid syntax
> > ~~~
> > {: .error}
> > ~~~
> > File "<stdin>", line 1
print("Syntax errors are annoying.")
^
IndentationError: unexpected indent
> > print("Syntax errors are annoying.")
> > ^
> > IndentationError: unexpected indent
> > ~~~
> > {: .error}
> > ~~~
> > File "<stdin>", line 1
print("But at least Python tells us about them!")
^
IndentationError: unexpected indent
> > print("But at least Python tells us about them!")
> > ^
> > IndentationError: unexpected indent
> > ~~~
> > {: .error}
> > Working function:
> > ~~~
> > def another_function():
print("Syntax errors are annoying.")
print("But at least Python tells us about them!")
print("So they are usually not too hard to fix.")
> > print("Syntax errors are annoying.")
> > print("But at least Python tells us about them!")
> > print("So they are usually not too hard to fix.")
> > ~~~
> > {: .python}
> {: .solution}
Expand Down

0 comments on commit 79ad1fb

Please sign in to comment.