From 02fd0396cc895c1e644e8cb5e1dc097a2bfc8870 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Mon, 23 Sep 2019 13:09:24 -0500 Subject: E --- csci1913/lab1/lab2_strap012.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'csci1913/lab1/lab2_strap012.py') 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. # -- cgit v1.2.3