Code 17: Taking input in multiple lines for 1D Integer Array | Array Input Python | 365 days of code

Published: 17 January 2021
on channel: Code House
391
4

Python program to take input in multiple lines for 1D Integer Array.

Complete playlist for different ways of input in the array as asked in coding questions:    • Array Input in Python  

Code -
"""
Input Format
N (Length of Array)
Value1
Value2
Value3
......

Sample Input:
4
83
84
85
86
"""
N = int(input()) # Length of Array
values = []
for i in range(N):
values.append(int(input()))
print(values)


On this page of the site you can watch the video online Code 17: Taking input in multiple lines for 1D Integer Array | Array Input Python | 365 days of code with a duration of hours minute second in good quality, which was uploaded by the user Code House 17 January 2021, share the link with friends and acquaintances, this video has already been watched 391 times on youtube and it was liked by 4 viewers. Enjoy your viewing!