diff options
Diffstat (limited to 'csci1913/lab1')
-rw-r--r-- | csci1913/lab1/lab2_strap012.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): |