How do I append a single element preferable a floating value from a user input to a numpy array. The code I have written below just prints out an empty array each time and I am having trouble understanding why nothing is being appended.
import numpy as np
start=0
start_prompt = int(input("Start press 1"))
while start_prompt > start:
x=np.array([])
y = float(input("Please input number: "))
if y > 0:
np.append(x,y)
print(x)