Python Forum
print 3 table in a 3*3 matrix format
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print 3 table in a 3*3 matrix format
#2
you can use mod operator and 3 '% 3'
when result is 0, you want a line feed
add ', end='' where you don't want a line feed
Reply


Messages In This Thread
RE: print 3 table in a 3*3 matrix format - by Larz60+ - Jan-04-2017, 01:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  define a diagonal matrix from a matrix amalalaoui 1 2,399 May-15-2019, 01:12 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020