feat(r-1.3_scratch.py): tried breaking the loop

This commit is contained in:
baphim
2026-09-03 00:48:05 -04:00
parent 2a7ed6499b
commit 7f74df6df2
+4 -4
View File
@@ -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)
else:
if x == str(quit):
break