diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2019-09-25 21:03:12 -0500 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2019-09-25 21:03:12 -0500 |
commit | 446d995b85c6f6638a037429ddc9180636841cf1 (patch) | |
tree | 46377f9384c06fc0b3737a7daf718ba72385c939 /csci1913/Python | |
parent | Get rid of space (diff) | |
download | homework-446d995b85c6f6638a037429ddc9180636841cf1.tar homework-446d995b85c6f6638a037429ddc9180636841cf1.tar.gz homework-446d995b85c6f6638a037429ddc9180636841cf1.tar.bz2 homework-446d995b85c6f6638a037429ddc9180636841cf1.tar.lz homework-446d995b85c6f6638a037429ddc9180636841cf1.tar.xz homework-446d995b85c6f6638a037429ddc9180636841cf1.tar.zst homework-446d995b85c6f6638a037429ddc9180636841cf1.zip |
E
Diffstat (limited to '')
-rw-r--r-- | csci1913/Python/lab2_strap012.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csci1913/Python/lab2_strap012.py b/csci1913/Python/lab2_strap012.py index 4e154f7..511e6bf 100644 --- a/csci1913/Python/lab2_strap012.py +++ b/csci1913/Python/lab2_strap012.py @@ -25,7 +25,7 @@ class Zillion: def increment(self): length = len(self.List) - 1 newList = self.List - newList[len(self.List)-1] += 1 + newList[length] += 1 if newList[length]>=10: #Loop to increment all 10s to 0s with carry for n in range (0,length): newList[length-n]=0 |