summaryrefslogtreecommitdiff
path: root/testing_and_debugging
diff options
context:
space:
mode:
Diffstat (limited to 'testing_and_debugging')
-rw-r--r--testing_and_debugging/script.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing_and_debugging/script.rst b/testing_and_debugging/script.rst
index 56b2b8f..28bc9f1 100644
--- a/testing_and_debugging/script.rst
+++ b/testing_and_debugging/script.rst
@@ -275,7 +275,7 @@ The solution is on your screen.
{{{ Switch to slide solution 2 }}}
def gcd(a, b):
- if a % b == 0:
+ if a % b == 0:
return b
return gcd(b, a%b)
def lcm(a, b):
@@ -286,10 +286,10 @@ The solution is on your screen.
x = int(numbers[0])
y = int(numbers[1])
result = int(numbers[2])
- if lcm(x, y) != result:
- print "Failed lcm test for", x, y
- else:
- print "Test passed", result
+ if lcm(x, y) != result:
+ print "Failed lcm test for", x, y
+ else:
+ print "Test passed", result
{{{ Pause for some time and then continue }}}