From 7f74df6df27adc97bd7e0b36f8936ab14e14e89f Mon Sep 17 00:00:00 2001 From: baphim <269010393+baphim@users.noreply.github.com> Date: Thu, 3 Sep 2026 00:48:05 -0400 Subject: [PATCH] feat(r-1.3_scratch.py): tried breaking the loop --- lab-01/r-1.3_scratch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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