17 lines
470 B
Python
17 lines
470 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-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. I need to find a way to end the input loop
|
|
that I've created.'
|
|
"""
|
|
|
|
data = []
|
|
x = input('Enter a number (enter "end" to stop): ')
|
|
while x != "end":
|
|
data += [x,]
|
|
print(data) |