diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2019-09-19 19:09:12 -0500 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2019-09-19 19:09:12 -0500 |
commit | 8cdbe123f45eff58627baa1bd277518656561076 (patch) | |
tree | a0ee4a742724c3083610bec49055e9ed679a27a0 /csci1913 | |
parent | Less broken now (diff) | |
download | homework-8cdbe123f45eff58627baa1bd277518656561076.tar homework-8cdbe123f45eff58627baa1bd277518656561076.tar.gz homework-8cdbe123f45eff58627baa1bd277518656561076.tar.bz2 homework-8cdbe123f45eff58627baa1bd277518656561076.tar.lz homework-8cdbe123f45eff58627baa1bd277518656561076.tar.xz homework-8cdbe123f45eff58627baa1bd277518656561076.tar.zst homework-8cdbe123f45eff58627baa1bd277518656561076.zip |
ch-ch-ch-ch-changes
Diffstat (limited to 'csci1913')
-rw-r--r-- | csci1913/lab1/lab2_strap012.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/csci1913/lab1/lab2_strap012.py b/csci1913/lab1/lab2_strap012.py index 7480447..50db0ea 100644 --- a/csci1913/lab1/lab2_strap012.py +++ b/csci1913/lab1/lab2_strap012.py @@ -4,11 +4,10 @@ class Zillion: self.__x=0 if digits is not '': for __x in range (0,len(digits)): - if digits[__x] is (not ' ') or (not ','): - try: - int(digits[__x]) - except ValueError: - raise RuntimeError + try: + int(digits[__x]) + except ValueError: + raise RuntimeError else: raise RuntimeError def increment(self): |