diff options
-rw-r--r-- | csci1913/lab1/lab2_strap012.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/csci1913/lab1/lab2_strap012.py b/csci1913/lab1/lab2_strap012.py index 1a9b601..1ff1a28 100644 --- a/csci1913/lab1/lab2_strap012.py +++ b/csci1913/lab1/lab2_strap012.py @@ -21,7 +21,10 @@ class Zillion: else: return self.List def increment(self): - return None + newList=self.List + newList[len(self.List)-1] += 1 + if newList[len(self.List)-1]>=10: + def isZero(self): for p in range (0,len(self.List)-1): if self.List[p] is not 0 or not '0': @@ -35,7 +38,6 @@ class Zillion: - # # TESTS. Test the class Zillion for CSci 1913 Lab 2. # |