Informatics2-2018/Lab05

A MathWikiből
(Változatok közti eltérés)
a
 
17. sor: 17. sor:
 
== [https://ccwe.math.bme.hu/cloudcoder Cloudcoder] ==
 
== [https://ccwe.math.bme.hu/cloudcoder Cloudcoder] ==
  
 
+
# capitalletter
 +
# birdtalk
 +
# docstrings
 +
# highwayrest
 +
# isanagramma
 +
# pointtable
  
 
[[Informatics2-2018/Lab04|previous]] [[Informatics2-2018#Labs|up]] [[Informatics2-2018/Lab06|next]]
 
[[Informatics2-2018/Lab04|previous]] [[Informatics2-2018#Labs|up]] [[Informatics2-2018/Lab06|next]]

A lap jelenlegi, 2018. március 12., 16:56-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|

Cloudcoder

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

previous up next

Személyes eszközök