diff options
-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 |