Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get multiple inputs in python using map

x = list(map(int, input("Enter multiple values: ").split()))  
print("List of students: ", x)  
Comment

PREVIOUS NEXT
Code Example
Python :: import picturein colab 
Python :: python json string indices must be integers 
Python :: extract name of file from path python 
Python :: pandas filter rows that are in a list 
Python :: coding planets 
Python :: how to print a variable in python 
Python :: pandas replace last cell 
Python :: count elements in columns pandas 
Python :: foreign key and primary key difference 
Python :: generate random integers in a range 
Python :: add column to df from another df 
Python :: find an index of an item in a list python 
Python :: update ubuntu to python 3.85 
Python :: Converting categorical feature in to numerical features 
Python :: how to read hdf5 file in python 
Python :: np.stack 
Python :: compose functions python 
Python :: dict get list of values 
Python :: square root python 3 
Python :: urllib download file to folder 
Python :: radiobuttons django 
Python :: Print First 10 natural numbers using while loop 
Python :: create new column with length of old column value python 
Python :: resample ohlc pandas 
Python :: get week from datetime python 
Python :: matplotlib figure size not working 
Python :: coloring text in python 
Python :: new line in python 
Python :: python convert int to hex string 
Python :: rstrip in python 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =