Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pass in 2 numbers, A and B. You should create a list with A rows and B columns, then populate each cell

Pass in 2 numbers, A and B. You should create a list with A rows and B columns, then populate each cell
A = 2
B = 3
output = []
row = A
column = B
for num in range(0, row):
  output.append([])
  for i in range(0, column):
    output[num].append('R' + str(num) + ('C' + str(i)))
print(output)
Comment

PREVIOUS NEXT
Code Example
Python :: ios iterate through dictionary 
Python :: What are zinc bandages used for? 
Python :: multiple categories on distploy 
Python :: Return an RDD created by coalescing all elements within each partition into a list. 
Python :: Merge the values for each key using an associative and commutative reduce function. 
Python :: how to find mean media and mode python 
Python :: Returns the cartesian product with another DataFrame 
Python :: data exfiltration icmp 
Python :: extract first word from string in column into a list in python 
Python :: how to xor two element in python 
Python :: jwt authentication python flask 
Python :: oscillating fan 
Python :: python argparse only allow certain values 
Python :: dataframe remove first row 
Python :: pylatex tab 
Python :: python set class variable 
Python :: iterate through keys in dictionary 
Python :: Recursive Folder scan 
Python :: python string match http 
Python :: autoscrapper installation 
Python :: detail view use slug or anything else pk 
Python :: py2-pip (no such package) required by world py2-pip 
Python :: convert outlook email to text file python 
Python :: python to java converter online 
Python :: open anarchy ip 
Python :: python x,y,z is d (20, 30, False) 
Python :: Random Average 
Python :: https://practice.geeksforgeeks.org/problems/coin-change2448/1 
Python :: Sort list in-place (Original list is modified) 
Python :: create a django and react readonly web app 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =