add input to list python

Solutions on MaxInterview for add input to list python by the best coders in the world

showing results for - "add input to list python"
Nicola
25 Mar 2020
1a = list(map(int,input("\nEnter the numbers : ").strip().split()))
Jan
04 May 2017
1# number of elements 
2n = int(input("Enter number of elements : ")) 
3  
4# Below line read inputs from user using map() function  
5a = list(map(int,input("\nEnter the numbers : ").strip().split()))[:n] 
6  
7print("\nList is - ", a)
Kathleen
21 Jun 2017
1lst = [ ] 
2n = int(input("Enter number of elements : ")) 
3  
4for i in range(0, n): 
5    ele = [input(), int(input())] 
6    lst.append(ele) 
7      
8print(lst)
Céleste
23 Jan 2019
11
22
33
45
56
67
78
89
93
10
11
12
13
queries leading to this page
take an array as input in pythonpython program to accept the input as the list in init methodhow to take input from user in list in pythonget input from usert and convert to list pythonhow to take list as input in python in single linehow to take list of integers as input in a function in pythonhow to store input in list in pythongetting list input in pythonpython read input as listlist 28input 28 29 29 in pythontake input of a list in pythonhow to read array from user in pythonhow to allow input element which accepts mulitple numers in array and display itpython get input string in lishow to make user input be a list of strings pythonask user input for a list pythonhow to put string input in listadd input to list pythonget list as input in pythonadd user inputs to a outputted list how to list out user input pythonjoin input list pythonpython user insert a list of numbersinput a list of integers in pythonpython make the user input a listhow i take input integer and make it list in pythonhow to get input list pythonhow to put user input values in a list pythonhow can i take input list inget list input pythonaccept input listpython read input strings into listhow to take input of a list in pythonenter elements in list pythonto enter numbers in a list and use all functions of the list in pythonhow to take input a list in pythonpython accept input basis listhow to take list of list input in pythoninputting a list dynamically in pythonhow to take input in list in pythoonhow to take input in list in pythonmanual input in a list pythonhow to make a list of the inputget user input as a listhow to call the information from a empty list by the user inputpython create a list from user inputhow input list in pythonread these numbers into an array or a list in pythonuser input for list in pythonget input as list in pythonhow to input values into a listhow to get list of items as input from user in pythonuse for loop accept input for listhow to take input in python a listhow to list input in python 2python putting input into a listgetting a list as an input from a userget list input i npythontake input from user in list in pythonsplit input into list of numberstake list of lists in python inputenter list from console in pythongetting input from list in list pytohntake input into list pythonhow to store inputs in a list in python take inputs from user to make a list using or loophow to get an input of list from the user in python and what the user needs to put inmaking a function that takes an input and append it to a list pythonuser input list with 2chow do i input in a list on a indexhow to take input into list in pythontake input in listhow to input data in to a listpython input get a listlist from user in pythonint list input pythontake input for list in pythontake in input as lsit pythonpython input element in listinput value into list in pythontaking an input as a list pythonhow to get a list input from user in pythonpython does input take in a listpython getting input from list from python scriptinput list of values in each line pythonpython user input add to listpython form input to listread input as a list of number in pythonhow to ask for a list with input in pythonhow to take input in a listtake list input from user in pythonhow to get list elements in python as input from userhow to input elements in a string pythoninput values in list pythonlist input in python 2 7python user input to search list of stringspython take in list from user inputasking user to add to a list then add list together pythonenter a space separted list from ser pythonpython inputs for listread input as a float python listhow to take list input of string in pythonpython function input listuse input list in pythonread the list in pythontake input from user in the list in pythonhow to creat a list in python using inputpython enter list of numberspython get user input and append linetaking input in list in pythonhow to input an array in python codeinput numbers in list pythonhow to take input to list in pythonhow to make input of a function a list in pythonget user input as a list pythonuse input and list on the same string in pythonhow to input a list from user in pythonhow to receive a list input from user using pythonentering array of strings to a var in pythontake input input in list pythonpython user input from a listaccept input as the elements in a listcreating list for each line of input pythontake a list input in pythonpython input from listhow to take inputs from user in python using list comprehensionhow to take input a list from user in pythonhow to put input into listsenter values in list in loop pythonenter data to list pythonhow to take list input using map in pythonlist syntax for taking input in pythoncreate a list from user input in pythonhow to take input to list from user in pythonget array input from user in pythonho to take list as input in pythoninput lists pythonhow take list as input in pythonhow to take user input of an array in pythontaking input for a lista list of list user input pythonlist comprehension in python input convert to inthow to change input to a list in pythonhow to get list of name as input in pythontake user input in listtaking input in form of listhow to get list of an input string in pythoninput as listhow to take range of input and store in list in pythonhow to input items into a list pythonhow to print a list by user in pythonhow to get input listgetting a list as input in pythonpython input to list onelineinput list with space in pythonhow to input list of lists in pythontake values in list by user in pythonhow to take user input in python listpython how to input an arrayconvert input into list pythoninput list from user pythonhow to take input from user into a list in pythonhow to take list of integers as input in pythonpythoncode to input to listtake a input in list pythontake input from user in list pythonenter elements in list from userarray char input in pythoninput list of string pythonappend numbers from input to list javapython user input as listinput list of elements in new line in pytohninput elements to a listif input is one out of a list pythonread array elements from user in pythonpython list input from usertake list input from user in pythoninput value in to list in pythonpython taking input from user in listinput a list user in pythontake a list as input in pythonget a list input pythonhow to take int input in python listhow to get element of particular userget a list as input property pythonhow to split input into list pythonpython user input to listcreat a list using input funtion in pythonhow to get user input for list in pythontake a list of integers as input pythonpython input integer listconverting input to list of numbers in pythonhow to take list input in pythonarray input in pythonhow to input a list into a function pythonnumber of elemnts as input pythonhow to get a list as input in pythoninput elements in list in pythonhow to take input in python listhow to prompt a list in pythonpython input list as integerpython read input as list of chartake list of integers as input in pythonget list from user inputhow to user input list in pythoncan we input a list in pythontake input list of strings in pythonhow to append in list from inputhow to save a word entered by a user in a listlist of inputs pythonhow to take input in of listinputing a list in pythoncorrect way to take a list as input in pythoninput in python as listinput a list from user in pythonhow take input from user in python and put every item in array the numbers is accepted by userhow to input numbers into a list pythonhow to collect a list as input pythonhow to enter integer list in pythonpython convert user input string into listhow to take list input in python vby userhow to take input in the list in pythonentering elements in a list in pythoninput a list of list in pythonhow to add inputs to a list in pythonhow to get a list from a system by pythonhow to get item from list as player input pythonadd input numbers in a list pythonappend user input to list pythonhow to get input of list in pythonjava take user input integer and put them to a list pythongget list from user inputhow to take input from user in python for arrayhow to enter in a list pythonget input list pythonhow to get user input for a list in pythonhow to input a list in python methods taking input a list 5d in pythonhow to ask user for size of list in pythontake input of list of listtake input array in pythonhow to int list from user in pythonhow to map input into a list in pythonpython input series of numbershow to read in a list in pythonpython how to input listtake list input in pythontaking list from user in pythonpython list user inputhow to take input from user for list in pythonhow to get input for list in pythonpython code to take list inputuser input in list pythonhow to get list input from the userpython input string as listpython list from user inputhow to take name input in list from user in pythonhow to make an input list in pythonhow to get input list from user in pythonif we input a list in a string pythoninput list from the userhow to take input as a list in pythonhow to take user input of a list inn 5bythoninput n from user and enter n digits in pythonlist in python inputhow to get a list from user in python without asking lengthpython function taking list as inputhow to get list of users in mysqlpython get input from user in listhow to get list input in pythonhow to ask a user to enter a listpython take input as listinput numbers to list pythonhow to store n inputs in a list pythonmethod to input listpython input to listtaking input of list in pythonuser input apend list in pythontake array as input in pythonmake a list from the input of the user in pythonhow to ask the user to input a list of string in pythoninput a list in pythonptyhon list inputinput 4 elements at once in pythongetting list as input in pythonhow to take input in list pythonconvert input to list pythonho to take list input in pythonhow to have users input into a list in pythonhow to take string input in list in pythonpython select from list user inputhow to take input with a for list in pythoninput list user in pythonaccept list as input pythonhow to take input in array in python onlinehow yto take list useer input in pythoninputting a list in pythongetting list from inupt pythontake input in python 2 7 as listuser input of list in pythonpython user input listinput une liste pythonhow to get list of lists from input in a pythoninput list of strings in pythoninput a list of strings in pythoninput in an array pythonhow to convert input to list in pythonpython take input in listgetting input from a user and adding it to a list and printing it out example in pythonhow to take input of list of values in a certail rangehow to take list in list input in pythonlist as a inputhow to add a store list in python 3 by user inputtaking input for a list of int pythonlist 28input 28 29 29how to get a list from user in pythonpython get list from inputhow to input list of integers and floats in pythonhow to accept a list of integers in pythonask for list input pythonpython create input for listhow to input a list as string in pythonhow to user input a list in pythontake array input in pythonenter elements in list using for looptake input as list in pythonhow to take input to a list in pythonhow to take input for list with spaces in python 3take input in python 2c list of inputfunction input list pythonbest way to store float list input from user pythonpython input integer list separate by 2chow to take user input in listread list of integers pythonwhat can u input in a python listhow to input integer list in pythonmake list from input pythonin python how to control user input from listshow to enter elements in list in pythonpyhton take input for list of listhow to take input list of int in python taking input for list in pythonlist as input in python 3lis input pythonappend a series of numbers from input pythonpython input list of stringshow to take input from the list elements in pythonread a list in pythonhow to take input from list in pythoninput list of names in pythonlist of inputstake input of a large list in pythonpython take list as inputinput list to set in pythonhow to take string input in listwrite user input in to a list pythonhow to take input in python of listenter values in list pythonpython store user inputs to listinput numbers in list in self pythonhow to make an input in a form list pythoninput list pythonhow to store list of numbers in python through inputlist user input strings in pythonhow to take n number of inputs in pythonhow to get a list of numbers as input in pythonhow to accept words in python from userhow to move an user input into a list pythonhow to take list as input for function in pythonuser input py listhow to have a users input become a list in pythoninput append pythonput input into list pythonhow to take input in python a list using maphow to get list of input in pythonhow to take input in python arraylist from input pythonhow to take user input for list in pythonhow to make user enter an list in pythonpython accept list as a input from user pynativepynative com e2 80 ba python accept list input from userhow to make a user input list in pythongiving input as list pythonhow to ask a user to input a list of numbers in pythonget list input from user in pythonpython give list from input for loophow to get a int list as input in pythoninput element at index in listlist of input pythonuser input for item in list pythonuser list nhow to put an input into a list pythonlist input from user in pythonhow to take list as user input in pythontaking list as intpython store user name input in listhow to put inputs into a list pythonmap input to a listtake input with list pythonhow do i make user only enter words in list python how to get a list as inputenter the array in python inputhow to ask the user for input list in pythonprompt the user to enter the list of itemstaking input in list in python for looppython take input into listhow to take user input in list in pythonpython input as listhow to take list as input in python from userhow to take list input from user in pythoninput numbers and store the numbers in a list pythoninput list withhow to take strings as input to a list in pythonhow to take input for a list in pythoncan we get a input from the listhow to get an array as input in pythonhow to input and add elements in a list pythonenter by user list in pythonhow to store input in a list pythonhow to get the input of a list in pythonhow to inputa listget list user input tkintertaking inputs and putting them into a list in pythonpython program to accept a list of 5 studentshow to take input in python in listhow to store input from user in a list pythoninput int list in pythonhow to get the input of a list in python from the userhow to input n elements in list in pythonhow to input a list in a single line in pythoninput string in a list pytohnuser input of eleement in pythonhow to have user input list in pythontake input in list pythonhow to get input list in pythonhow to input a list in python using for loophow to turn input into a list pythoninput in python array stringtaking input in python listhow to generate a list of numbers that are below an input in pythonprogram that takes as an input a list how to turn user input into a list pythonhow to get string list inputhow to take in inputs integers for a list in pythonhow to take user input as list number in pythonadd classes to password input in djangoformcan elements in a list be input variables in pythonpython class for create a list from userfrom input liststore all input in list pythoninput sequence pythonhow to add input with space to list in pythoninput list using split in pythonhow to take input as list in pythonlist imput funcition pythonhow to take a aray input in pythontake input in a list pythonstore input in list pythonhow to store input sentences in list in pythontake inut of list pythonpython takin input in listpython code that stores ten inputs in a listpython get 10 numbers from a user in a list how to accept array in pythonhow to accept a list using function pythonget list input in pythonget list of integers pythonhow to take a input as a r string in pythontaking a list as input in pythonhow to take list input in python from userhow to accept a list from user in pythonhow to take input in list in python separated by spaceinput lsit funtion pythoninput data in list by user and sort thistaking input in listinput string list in pythonpython how to add input to a listpython inputting a listtake the minout form user to a list in pythoninsert an input in a list in pythonhow to accept array of numbers in pythonhow to take list as input in pythonhow to input list in pythonhow to take a list as a input inside a list in pythonhow to input number and convert to listtake input in list in python 3how to take input list of lists in pythonpython for loop input listhow to get input as list in pythonget list as input pythonhow to add userinput into a set pythonallow user to add to list pythonhow to take input in list in python from userenter numbers from users seprated my space enter in list pythonpython get user input listhow to take a list of numbers as input in pythonhow to take input in a list in pythontaking list input pythonhow to take a list input in pythonhow to ask user to input a list in pythonpy make list form inputlist map input pythonpython how to make the user input a listreading list using input split 5cnhow to free input in listhow to get user input of list in pythonhow to create a function to put user input in a listhow to take a list of inputsin python how to get user input from list of stringsinput list of elements using input function in pythoncreate list with two inputs pythonpython select one item from list inputinputton value in the list pythonhow to take list input from user in pythongetting a list as input on pythonlist array input pythonhow to take input of listhow to enter elements in list using for loop in pythonhow to get input from user in python listtypes of list input in pythonhow to make user input a list in pythoncode for accepting input after a list is shown pythonuser input list in pythonhow to take input of list in pythonpython input list of intspython input as diferentes values from a listhow to input list in function pythonhow to get input for traverse a list in pythonhow to get an array of numbers as inputin pythonhow to take input in list in python using for loophow to take an array as input in pythontake user input in list pythonpython take input listhow to take user input listhow to take input in list in pythobtake a list as input pythonhow to take list of list as input in pythonuser input to list pythonhow to input list of integers in pythonhow to take integer list as input in pythoninput data into 2 lists through keyboard pythonlist of elements python inputhow to take list user input in pythonhow to take input list in pythonpython functon take list as inputlist input pythontaking list as input in python using maphow to get user input of list of lists in pythonhow to create an array with user input pythoninput in a list in pythondisplay user input data to a listmake user input a list pythonpython list into list input from usera python program to scan inputs in a list read space separated integers in python to listtake list from user in pythonlist append input pythonarray of input string in pythonhow to take user input as a list in pythonpython input from user to listpython taking list as inputpython how to take array as inputhow to take anyinput in list in pythonuser input python listtaking string input in list pythonhow to take integer and string as input in list pythonhow to get list from user in pythoninput string data in array pythonlist as user input pythonfor loop to input list from userhow to input into a list in pythonhow to take input in list pythontake arbitary list of numbers as input in pythonhow to take a input split it and add it to a listconvert user input to list pythonhow to get a list from input in pythonhow to scan user input for something in a list pythonhow to input a list of strings in pythonhow to take input from user in python in listlist input python functiontake list as input in python 2 7how to take input into a list in pythoninput list in python using maoinput array to pythontake input of list inpythontake input of array in pythonpython how to get user input as integer lista given list user input which number in pythoninput a number python create a list from userhow to store inputs in a list pythonuser input in list in pythonaccepting array integers in pythonprint all the elements taken as input during run timwpython enter number into listpython accept input from listhow to input elements in list in pythonhow to read from list in pythonpython show list and take input from listcan we take list as a inputhow to take in inputs for a list in pythonpython program that can accept 10 names in a listhow to get input in list in pythonpython how to get user input as a listhow to take array input in python 3how to take a list as a string input in pythonpython find input in list from valueinput python from listlist 28list 28input 28 29 29 29 in pythontake input in python for listhow to input list using maphow to make a list form inputinput list of integers in pythonread user input to list pythonpython input series of numbers to arraypython select elemnt in list from user inputinput separated by space python listtake in a list of numebrs in pythonhow to get element in list python from userhow to number an input list pythonhow to do user input in list python 3how to add a users input into a list and print it out example in python 3take input as alist in pythonpython user input choose from listhow to add input into a certain location in python listtake input array in python from user list of stringsinput list from user in pythonuser input to list in pythonhow to store input in a list in pythonhow to take input for an array in pythontaking input a array of numbers in pythinpython int list from user inputfill a list with input pythonhow to enter a list in pythonhow to get a values from a user and add them to a listhow to get list with input in pythonlist of integers as input pythonread list of numbers in pythonhow to take input directly in list in pythonhow to make user input listinput value in list pythonpython array input form the userinput list in python using mapstring list user input pythonlist user input in pythonhow to take a list as input in function in pythonhow to input a number in array in pythonhow to let user input a sequence of numbers in pythonlist as input in pythonmake user entered list in python without asking user list sizehow to take user input as list in pythonarray values from user in pythonhow to put user input into a list in pythonuser input in a list pythontaking user input in python liststake input in list in pythonhow to input list in pytonhow to get input in python 3 and use it in a listadd inputs to list pythonpython take array as inputinput 28 29 split 28 29 in python listpython lists with inputinput a list of numberstaking input in a list pythontaking input in list pythonhow to make a list thats user input pythonhow to get int list as inputinput as series of numbers and output as a listhow to input list within listhow to put entered numbers in a list pythonpython input string list of integersinput list elemets in pythonhow to take input from the listhow to take user defined list input in pythonhow to split an input and put it into a list in pythoninput integer list in pythonstore user input in a list pythonpython store user input in listaccept a list in pythonhow to input a list of integers in pythoninput data in list by user and sort listinput in python listget array input in python for stringsinput using list in pythonreading list from user input pythonpython input list of integershow do inser input in list pythoninput list of list pythonhow to read input list in pythonfunction with list input pythonget character list from input pythonaccept list elements in python from user and print themhow to user input into list for graph in pythoninputting into an array in pythonsplit a string input an input in two list pythoninput n numbers in pythonconvert value of input into list pythonhow to store elements in list from userget list of names from user as input pythonpython get list of inputstake numbers from list pyhonlist as a userinput in pythonhow to get input as a list in pythonhow to take list as input in python while defining a functionautomatic list input in pythonhow to take input of elements in array pythonget elements input list pythonhow to create a list in python with user inputinput python listsinput in python in a listhow to get array elements from user in pythoninput in array in python by userinput split python listhow to take input from user in a listpython input int arrayhow to take input in list by using for loop in pythontaking list input in pythonappend with input ptrhonhow to get an entire array as input in pythonhow to take array input in pythontaking user input in python store in arrayinput into a interger listhow to read input list of number input in pythonhow to take list input in python in single linehow to take given inputs into a list in pythonconvert input values u list pythoninput a list pythongetting input for list in pythonhow to take list as inputpython list input splitpython program to take user input in listtake input in a list in pythonhow to get the input in listpython list of lists inputwrite a python program to take input from user as a listtaking list as input in pythonhow to take inputs directly into a list in pythonhow to make a list of inputshow to get input in a list in runtimetaking space separated input in python listhow to take input for list of list in python python input select one item from list inputhow to copy the input into an list pythonhow to get int list input in pythonhow to search a list from a user input in pythonput list of input numbers into list pythonpython list inputdeclare list in python with user inputhoe to enter numbers into list in pythonget string list input pythonpython input in listinput items in list in pythonpython read input string as listget list as inputcreate a list from 2 inputshow to append input in list in pythonuser input to python listtake input in python as listpython string input to integer listpython array assign input valueinsert input values into a list pythonaccept array element in pythonhow to take user input of list in pythonhow to take list of string input in pythonhow to create function with list as inputask for number and list the array in pythonlist type input pythonhow to create a input list in pythonhow to input listmake a list from input pythoninput number in list pythonpython 3 array inputhow to make string of input into list pythoninput python to arrayuser input string python listinput string list from user in pythonhow to ask a user to input a list of numbershow read array input in pythonpython how input can take two listhow to append function find and input user pythoninput of list in pythonbest way to take input from user in list pythonhow to get a list of inputs in pythoninput array in pythongetting array input in pythontake list input pythonread array of numbers from user in pythonhow to make a list of inputs pythontaking input as a list in pythonpython create list from inputhow to read no of elements in pythoninput a lsit of numbers pythonaccept input in the form of list in pythonhow to make input a list in pythonhow to take a list as input in pythonmake a list in python and read the input how to take input and store in list in pythonaccept list elements in pythonhow to take input for list in pythonpython tk allow user to input an arrayhow to get integer value from user to list in pythonhow to take a input of values of array in pythonpython examples with user input from listpython input listwhat is a list type input in pythonpython read list of int from userhow to make an input into a list pythonhow to get a list of numbers below an input in pythonpython input into arrayuser input from listhow to take return list input in pythonhow to get list as input in pythoninput list from the user pythonhow to declare an input as a list in pythonadd inputs separated by space in pythontake array as inputs in python using for loopdevelop a python program to create a list of 10 integer by taking input and find sumpython input list instead of stringprogram to input listshow to make from a input a listpython get list of integers from inputtake a user input to a list in pythonlist from user input pythonhow to add elements in list with user input in pythoninput in list in pythonhow to take input into a list pythontake input in python listhow to get list of inputs from user in pythontake input as a list in pythonhow to get input for a list in pythonhow to convert inputs into a list in pythoninsert an imnput in a list pythonuser input list 5chow to take integer array input in pythonhow to insert input value to the list pythoninput numbers list pythonhow to take list of numbers as integer input in pythonpython list map inputtaking user input in python listwap to enter numbers in a list and use all functions of the list python taking list inputpython convert user input to arraytaking number input in python arraypython get inputs as listin python how to get user input based on listhow to take a input as a list in pythonhow to take user input in python for listlist python for inputpython how to input a list of numbersinput data into a list using array in pythoninteger list input in pythonhow to take input in list from user in pythonhow to accept list of numbers in python in same linepython create listfrom inputhow to input the array values during runtime in pythonhow to input list from user in pythonmake iist with inpout number in one time pythoninput numbers into a list pythonhow to input a list in python 3can we take input of a list in pythonmake a list from 2 inputsconverting input to list in pythonhow to add user input to a list in pythonin python programming how get input from user into the listhow to get user input in list in pythonpython how to get user input as listget input in list in pythontake list as input in pythonmap in python input listtake integer list input in pythoninput 28 29 in python listhow to plus a number in a list with an inputinput from user in list in pythoninput a list of prices add them and print total in pythonhow to make input into a list pythonlist comprehension taking user input as int and string in pythonhow to give input to array in pythonlist based on user input pyqthow to create input lust in pythonuser input a list in pythonget list as input from user in pythonpython input list from the userhot to input a list from user in pythonpython user input from listturning user input into list pythonhow to take in user input for a python listlst 3d 5b 5d n 3d int 28input 28 22enter number of elements 3a 22 29 29 for i in range 280 2c n 29 3a ele 3d 5binput 28 29 2c int 28input 28 29 29 5d lst append 28ele 29 print 28lst 29code for accepting input after a list is shownaccept a list from the userhow to append user inputs to a list in pythontaking array input from the user in pythoninput list in pythonpython input 28 29 liststring array input in pythonhow to enter the element from list in pythonpython accept a list from userhow to take input in python for listinput array in python list comprehensioninput list integer pythoninput from user in list pythonhow to input a list pythonhow to get input array from user in pythonget user input of list in pythoninput from a list pythonhow to get input values in list pythonsingle line input for list in pythonpython input a listpython input list of intstring list input pythonhow to make a list with a string inputhow to enter variable in list python list input pythonget a list of name as an input from the user pythoninput elements in list pythonmaking n list according to user in pythontyps of inpyt python listhow to get a list when we enter 40 in inputhow to take input fro user in list pythonhow to get a list from a users inputs pythonhow to create a list in python using inputhow to take input list from user in pythonhow to take inputs directly into a list in python3make user entered list in pythontake n user input in python store into listinput digits in list pythonuser input into list pythoninput into list with nameshow to create a list from user input in pythonin python how to get user input based on list of stringshow to append user name inputs to a list in pythonhow to take input of a list of numbers in a string in pythonhow to get input from list in pythontake input list in pythonhow to get array input in pythontake an array of int as input in pythoninput in list pythoninput a list in python from useradd value from input to list pythontaking a string input to list in pythonpython code accepting list from input take int input list in pythonhow to read a list from input in pythonlist input in pythontake input from the user and return a listpython how to add user input to a listhow to scan list in python for a stringreading list using input splitadd input to list python