diff options
author | Prabhu Ramachandran | 2017-02-22 14:56:35 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2017-02-22 14:56:35 +0530 |
commit | d5c20e445b193fad5cb4339f00e11212fdd39c0a (patch) | |
tree | 94425bf5693fd7797fe128678614b4de364b0df9 /testing/code/gcd.py | |
parent | ba725c5af9ac1c7064211589ff561fb79f3853b4 (diff) | |
download | python-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.py | 9 |
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) + + |