Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to take input in 2d list in python

rows,column=[int(x) for x in input().split()]
list=[[int(input()) for i in range(column)] for j in range(rows)]
Comment

how to take input in 2d list in python

rows,column=[int(x) for x in input().split()]
list=[[int(input()) for i in range(column)] for j in range(rows)]
Comment

PREVIOUS NEXT
Code Example
Python :: move file python 
Python :: self.app = Tk() 
Python :: calcutalte average python 
Python :: make binary tree in python 
Python :: python iterate through dictionary 
Python :: save plotly figure as png python 
Python :: python currency signs 
Python :: np.zeros data type not understood 
Python :: measure execution time in jupyter notebook 
Python :: python ssh connection 
Python :: python loop through array step size 2 
Python :: django order by 
Python :: combine two dictionary adding values for common keys 
Python :: sklearn logistic regression get probability 
Python :: video streaming flask 
Python :: with open python 
Python :: index of max value of sequence python 
Python :: get pixel color pygame 
Python :: TypeError: exceptions must derive from BaseException 
Python :: how to make a minute counter in python 
Python :: df only take 2 columns 
Python :: compile python to pyc 
Python :: pandas read cell value by index and column name 
Python :: create a dataframe python 
Python :: pandas apply function on two columns 
Python :: threading python 
Python :: pandas merge but keep certain columns 
Python :: two sum python 
Python :: delete directory if exists python 
Python :: how to create window in tkinter 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =