"Just Share and Record my learning track" #For loop to show 9 X 9 matrix i=1 j=1 for i in range(1,10,1): for j in range (1,10,1): print (i*j, end= " ") print() For Loop Example in One line Check the following blog to know it. http://pythonnote.blogspot.tw/2010/01/blog-post.html