Home>
for v in range (1, 10):
for h in range (1, 10):
print (f "{(v * h): 3d}", end = "")
print ("")
I'd like to make this twodimensional list into a twodimensional list and make the result read from the list the same as when executing the above program, but I'm worried about this for two hours.
I managed to make a twodimensional list, but can you teach me how to call it from the creation program below? Thank you.
kuku = []
for v in range (1, 10):
list_kuku = []
for h in range (1, 10):
list_kuku.append (v * h)
kuku.append (list_kuku)
print (kuku)

Answer # 1

Answer # 2
After creating the list, you can loop around again and output it in the same way.
for row in kuku: for elem in row: print (f "{elem: 3d}", end = "") print ("") # just print () is better
Related articles
 i'm having trouble installing the python library from github
 i'm having trouble getting an error when using bind with python tkinter
 python  when using systemd with vps, i am having a problem because i do not know where to create the service file
 i'm having trouble with a python syntax error
 i'm having trouble figuring out how to list the return values in python
 python  i'm having trouble handling the reverse for'index' with arguments'(0,)' not found error in django
 python 3x  python3 it worked until last month, but i'm having trouble with the error below suddenly this month
 python  i'm having trouble with a tkinter module error
 [python] i'm having a problem because i don't know how to efficiently output the line numbers of duplicate lines in a data frame
 python  [django] i'm having trouble with noreversematch errors
 python  scheduling problem algorithm bug
 c#  i am having trouble registering the data on the server side from vue using axiospost
 python  i want to make a scoring system with django, but i am having trouble making a db well
 php i'm having trouble with the timetable
 about the problem that float subtraction does not work in numerical calculation in python
 i'm having trouble building the environment for nodejs with mac book pro
 python  regarding the problem that tries to decompose a string apostrophe using a dictionary but fails
 i am having trouble with how to write an if statement when multiple variables are judged in vbnet
 python  regarding the problem of replacing unintended characters when replacing strings
 ruby  i'm having trouble getting data out across tables
calc.py
Execution example
Reference information
Python matrix output 2D array
https://StackOverflow.com/questions/39868
Standard output with numpy.savetxt
https://qiita.com/knucklethrow/items/b4bbe8b4a0a778d1fb10