Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how take in put as list in integer value

# creating an empty list
lst = []
  
# number of elements as input
n = int(input("Enter number of elements : "))
  
# iterating till the range
for i in range(0, n):
    ele = int(input())
  
    lst.append(ele) # adding the element
      
print(lst)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #put #list #integer
ADD COMMENT
Topic
Name
6+3 =