From 446d995b85c6f6638a037429ddc9180636841cf1 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Wed, 25 Sep 2019 21:03:12 -0500 Subject: E --- csci1913/Python/lab2_strap012.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'csci1913') 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 -- cgit v1.2.3