summaryrefslogtreecommitdiff
path: root/testing/code/gcd.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-02-22 14:56:35 +0530
committerPrabhu Ramachandran2017-02-22 14:56:35 +0530
commitd5c20e445b193fad5cb4339f00e11212fdd39c0a (patch)
tree94425bf5693fd7797fe128678614b4de364b0df9 /testing/code/gcd.py
parentba725c5af9ac1c7064211589ff561fb79f3853b4 (diff)
downloadpython-workshops-d5c20e445b193fad5cb4339f00e11212fdd39c0a.tar.gz
python-workshops-d5c20e445b193fad5cb4339f00e11212fdd39c0a.tar.bz2
python-workshops-d5c20e445b193fad5cb4339f00e11212fdd39c0a.zip
Add basic slides for workshop on pytest.
Diffstat (limited to 'testing/code/gcd.py')
-rw-r--r--testing/code/gcd.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/code/gcd.py b/testing/code/gcd.py
new file mode 100644
index 0000000..12e4935
--- /dev/null
+++ b/testing/code/gcd.py
@@ -0,0 +1,9 @@
+def gcd(a, b):
+ while b != 0:
+ a, b = b, a%b
+ return a
+
+def atoi(s):
+ return int(s)
+
+