From 8cdbe123f45eff58627baa1bd277518656561076 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 19 Sep 2019 19:09:12 -0500 Subject: ch-ch-ch-ch-changes --- csci1913/lab1/lab2_strap012.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'csci1913/lab1') 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): -- cgit v1.2.3