aboutsummaryrefslogtreecommitdiffstats
path: root/csci1913/lab1/lab2_strap012.py
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-09-18 15:10:23 -0500
committerMatthew Strapp <msattr@gmail.com>2019-09-18 15:10:23 -0500
commit5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea (patch)
tree932c5091daa9d7d6e9d2635079e8a27e08589956 /csci1913/lab1/lab2_strap012.py
parentI want to be kill (diff)
downloadhomework-5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea.tar
homework-5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea.tar.gz
homework-5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea.tar.bz2
homework-5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea.tar.lz
homework-5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea.tar.xz
homework-5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea.tar.zst
homework-5fcde9616f9b4a5f3ef7e7844c2c793eab8d51ea.zip
AHHHHHHHHHHHHHHHHHHHHHH
Diffstat (limited to '')
-rw-r--r--csci1913/lab1/lab2_strap012.py8
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):