Answer to Question #17310 in Python for Blair Sharpe

Question #17310
right here im trying to:Write a program that allows the user to enter up to 20 numbers to be stored in an array.

my code:

i = 0
while i<10:
a = int(input('enter a number:'))
b = []
b.append(a)
i+=1
if i==10:
print (b)
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS