From 79ad1fb5e02082fd2678a23e24e4db561db93033 Mon Sep 17 00:00:00 2001 From: "Zhian N. Kamvar" Date: Fri, 5 May 2023 16:15:49 -0700 Subject: [PATCH] fix gaps in solution block see https://github.com/carpentries/lesson-transition/issues/66 --- _episodes/15-scope.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/_episodes/15-scope.md b/_episodes/15-scope.md index 082556e6..363776ff 100644 --- a/_episodes/15-scope.md +++ b/_episodes/15-scope.md @@ -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 "", line 1 - def another_function - ^ -SyntaxError: invalid syntax +> > def another_function +> > ^ +> > SyntaxError: invalid syntax > > ~~~ > > {: .error} > > ~~~ > > File "", line 1 - print("Syntax errors are annoying.") - ^ -IndentationError: unexpected indent +> > print("Syntax errors are annoying.") +> > ^ +> > IndentationError: unexpected indent > > ~~~ > > {: .error} > > ~~~ > > File "", 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}