0
help there is error in the code that i wrote
no_of_inputs = int(input("Enter the no. of times you want the input: ")) for i in range (0 ,no_of_inputs+1): x[i] = input("Input the no. : ") print(x)
2 odpowiedzi
+ 4
smiley
Where have you defined x
Solution:
x = [input() for i in range(int(input()))]
print(x)
0
Namit Jain thanks