SyntaxFix
Write A Post
Hire A Developer
Questions
Try this code :
import numpy as np a1 = np.array([]) n = int(input("")) for i in range(0,n): a = int(input("")) a1 = np.append(a, a1) a = 0 print(a1)
Also you can use array instead of "a"