diff options
author | RossTheRoss <msattr@gmail.com> | 2019-09-23 13:09:24 -0500 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-09-23 13:09:24 -0500 |
commit | 02fd0396cc895c1e644e8cb5e1dc097a2bfc8870 (patch) | |
tree | c9efbda70310f1af4d9e24a6e87704a27e3c2d47 | |
parent | Final stretches of a bad mess (diff) | |
download | homework-02fd0396cc895c1e644e8cb5e1dc097a2bfc8870.tar homework-02fd0396cc895c1e644e8cb5e1dc097a2bfc8870.tar.gz homework-02fd0396cc895c1e644e8cb5e1dc097a2bfc8870.tar.bz2 homework-02fd0396cc895c1e644e8cb5e1dc097a2bfc8870.tar.lz homework-02fd0396cc895c1e644e8cb5e1dc097a2bfc8870.tar.xz homework-02fd0396cc895c1e644e8cb5e1dc097a2bfc8870.tar.zst homework-02fd0396cc895c1e644e8cb5e1dc097a2bfc8870.zip |
E
Diffstat (limited to '')
-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. # |