feat(r-1.3_scratch.py): attempt at building a list from user input
This commit is contained in:
@@ -6,7 +6,8 @@ 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
|
||||
backwards into the function itself. I need to find a way to end the input loop
|
||||
that I've created.'
|
||||
"""
|
||||
|
||||
y = True
|
||||
@@ -18,6 +19,6 @@ while y == True:
|
||||
y = False
|
||||
except:
|
||||
input('Please enter a number: ')
|
||||
|
||||
|
||||
|
||||
if x == float(x):
|
||||
data = [x]
|
||||
print(data)
|
||||
Reference in New Issue
Block a user