From 4ff10fb5807a5fbd19c317b2173aef658b5b7c57 Mon Sep 17 00:00:00 2001 From: baphim <269010393+baphim@users.noreply.github.com> Date: Thu, 3 Sep 2026 01:09:05 -0400 Subject: [PATCH] feat(r-1.3_scratch.py): I broke it --- lab-01/r-1.3_scratch.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lab-01/r-1.3_scratch.py b/lab-01/r-1.3_scratch.py index 8d5bf16..7ce815b 100644 --- a/lab-01/r-1.3_scratch.py +++ b/lab-01/r-1.3_scratch.py @@ -16,13 +16,16 @@ while y == True: x = input('Enter a number (type "quit" to stop): ') try: x = float(x) - if x != float(x): - y = False + x = str("quit") + if x == str("quit"): + break except: input('Please enter a number: ') else: if x == float(x): data += [x,] - print(data) + +print(data) + \ No newline at end of file