exercism

Exercism solutions.
git clone git://code.dwrz.net/exercism
Log | Files | Refs

README.md (1618B)


      1 # Matrix
      2 
      3 Welcome to Matrix on Exercism's Python Track.
      4 If you need help running the tests or submitting your code, check out `HELP.md`.
      5 
      6 ## Instructions
      7 
      8 Given a string representing a matrix of numbers, return the rows and columns of
      9 that matrix.
     10 
     11 So given a string with embedded newlines like:
     12 
     13 ```text
     14 9 8 7
     15 5 3 2
     16 6 6 7
     17 ```
     18 
     19 representing this matrix:
     20 
     21 ```text
     22     1  2  3
     23   |---------
     24 1 | 9  8  7
     25 2 | 5  3  2
     26 3 | 6  6  7
     27 ```
     28 
     29 your code should be able to spit out:
     30 
     31 - A list of the rows, reading each row left-to-right while moving
     32   top-to-bottom across the rows,
     33 - A list of the columns, reading each column top-to-bottom while moving
     34   from left-to-right.
     35 
     36 The rows for our example matrix:
     37 
     38 - 9, 8, 7
     39 - 5, 3, 2
     40 - 6, 6, 7
     41 
     42 And its columns:
     43 
     44 - 9, 5, 6
     45 - 8, 3, 6
     46 - 7, 2, 7
     47 
     48 In this exercise you're going to create a **class**.  _Don't worry, it's not as complicated as you think!_ 
     49 
     50 -   [**A First Look at Classes**](https://docs.python.org/3/tutorial/classes.html#a-first-look-at-classes) from the Python 3 documentation. 
     51 -   [**How to Define a Class in Python**](https://realpython.com/python3-object-oriented-programming/#how-to-define-a-class-in-python) from the Real Python website.  
     52 -   [**Data Structures in Python**](https://docs.python.org/3/tutorial/datastructures.html) from the Python 3 documentation.
     53 
     54 ## Source
     55 
     56 ### Created by
     57 
     58 - @sjakobi
     59 
     60 ### Contributed to by
     61 
     62 - @AnAccountForReportingBugs
     63 - @behrtam
     64 - @BethanyG
     65 - @cmccandless
     66 - @danishprakash
     67 - @Dog
     68 - @kytrinyx
     69 - @N-Parsons
     70 - @pheanex
     71 - @simmol
     72 - @tqa236
     73 - @yawpitch
     74 
     75 ### Based on
     76 
     77 Warmup to the `saddle-points` warmup. - http://jumpstartlab.com