diff --git a/lab-01/r-1.3_scratch.py b/lab-01/r-1.3_scratch.py index d1cef74..9fb34ab 100644 --- a/lab-01/r-1.3_scratch.py +++ b/lab-01/r-1.3_scratch.py @@ -12,13 +12,13 @@ that I've created.' y = True while y == True: - x = input('Enter a number: ') + x = input('Enter a number (type "quit" to stop): ') try: x = float(x) if x != float(x): y = False except: input('Please enter a number: ') -if x == float(x): - data = [x] - print(data) \ No newline at end of file + else: + if x == str(quit): + break \ No newline at end of file