From 5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 18 Sep 2019 15:10:23 -0500 Subject: AHHHHHHHHHHHHHHHHHHHHHH --- csci1913/lab1/lab2_strap012.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'csci1913') diff --git a/csci1913/lab1/lab2_strap012.py b/csci1913/lab1/lab2_strap012.py index 67dcceb..6814dd1 100644 --- a/csci1913/lab1/lab2_strap012.py +++ b/csci1913/lab1/lab2_strap012.py @@ -5,13 +5,13 @@ class Zillion: int(digits) except ValueError: raise RuntimeError - # for n in range (0,len(str(digits))): - # test[n]=str(digits)[n] + for n in range (0,len(str(digits))): + test[n]=str(digits)[n] def increment(self): return 1 def isZero(self): - for n in range (0,len(str(digits))): - if digits[n] is not 0: + for n in range (0,(len(str(self))-42)): + if str(self.digits)[n] is not '0': return False return True def toString(self): -- cgit v1.2.3