feat(r-1.3_scratch.py): I broke it

This commit is contained in:
baphim
2026-09-03 01:09:05 -04:00
parent fe2ae46053
commit 4ff10fb580
+6 -3
View File
@@ -16,13 +16,16 @@ while y == True:
x = input('Enter a number (type "quit" to stop): ') x = input('Enter a number (type "quit" to stop): ')
try: try:
x = float(x) x = float(x)
if x != float(x): x = str("quit")
y = False if x == str("quit"):
break
except: except:
input('Please enter a number: ') input('Please enter a number: ')
else: else:
if x == float(x): if x == float(x):
data += [x,] data += [x,]
print(data)
print(data)