Informatics2-2020/Lab05

A MathWikiből
(Változatok közti eltérés)
a
a (In the hazi system)
 
(egy szerkesztő egy közbeeső változata nincs mutatva)
1. sor: 1. sor:
 +
[[Informatics2-2020/Lab04|previous]] [[Informatics2-2020#Labs|up]] [[Informatics2-2020/Lab06|next]]
  
 
= <tt>string</tt>s =
 
= <tt>string</tt>s =
18. sor: 19. sor:
 
# '''<tt>capitalletter</tt>'''
 
# '''<tt>capitalletter</tt>'''
 
# '''<tt>birdtalk</tt>'''
 
# '''<tt>birdtalk</tt>'''
# '''<tt>docstrings</tt>'''
 
 
# '''<tt>highwayrest</tt>'''
 
# '''<tt>highwayrest</tt>'''
 
# '''<tt>isanagramma</tt>'''
 
# '''<tt>isanagramma</tt>'''

A lap jelenlegi, 2020. március 11., 12:00-kori változata

previous up next

strings

Drawing a matrix

Write a function that prints a matrix in a nice, tabular-like format. For example the matrix:

m = [[1, 2, -33], [44, 5, 666], [7, -8, -99]]

would look like this:

|   1|   2| -33|
|  44|   5| 666|
|   7|  -8| -99|

In the hazi system

  1. capitalletter
  2. birdtalk
  3. highwayrest
  4. isanagramma
  5. pointtable

previous up next

Személyes eszközök