Answer to Question #254705 in Python for Lin

Question #254705
1. Listing 101 by CodeChum Admin I want you to make a array/list of numbers for me. All you have to do is make a program that will let me input any random integer in one line. Afterwards, it will then print out all the numbers I've inputted, on separate lines. Care to do that for me? Input A line containing integers separated by a space. 1·64·32·2·11 Output Multiple lines containing an integer. 1 64 32 2 11
1
Expert's answer
2021-10-23T13:53:52-0400
numbers= list(map(int,input("Enter integers separated by a space: ").split()))
for n in numbers:
    print(n)



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