pythin taking input for array
x = list(map(int, input("Enter the values with spaces between them: ").split()))
# you can put the data type that you want in the "int" place
pythin taking input for array
x = list(map(int, input("Enter the values with spaces between them: ").split()))
# you can put the data type that you want in the "int" place
input and ouput array in python
a = []
for i in range(1,n+1):
a.append(int(input("Nhap phan tu thu %d: " % i)))
print(a)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us