From 49c42d2c1839df9e352179c377f575cda0b3bf65 Mon Sep 17 00:00:00 2001 From: baphim <269010393+baphim@users.noreply.github.com> Date: Thu, 3 Sep 2026 00:35:14 -0400 Subject: [PATCH] feat(r-1.3_scratch.py): confirmed verification loop works --- lab-01/r-1.3_scratch.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lab-01/r-1.3_scratch.py b/lab-01/r-1.3_scratch.py index eaf60b1..146e2bc 100644 --- a/lab-01/r-1.3_scratch.py +++ b/lab-01/r-1.3_scratch.py @@ -4,7 +4,20 @@ Created on Wed Sep 2 22:49:38 2026 @author: joseph +- I started working backwards at a point and wanted to figure out how to take +multiple instances of user input and create a list out of them and work +backwards into the function itself """ -data = list(input('Input any amount of numbers, separated by spaces...')) -print(data) \ No newline at end of file +y = True +while y == True: + x = input('Enter a number: ') + try: + x = float(x) + if x != float(x): + y = False + except: + input('Please enter a number: ') + + + \ No newline at end of file