class Matrix(object):
    def __init__(self, s):
        self.rows = [[int(n) for n in row.split()]
                     for row in s.split('\n')]

    @property
    def columns(self):
        return map(list, zip(*self.rows))

class Matrix(object):
    def __init__(self, s):
        self.rows = [[int(n) for n in row.split()]
                     for row in s.split('\n')]

    @property
    def columns(self):
        return [list(tup) for tup in zip(*self.rows)]

Make matrix exercise compatible with Python3
Make matrix exercise compatible with Python3

  class Matrix(object):
      def __init__(self, s):
          self.rows = [[int(n) for n in row.split()]
                       for row in s.split('\n')]
  
      @property
      def columns(self):
-         return map(list, zip(*self.rows))
+         return [list(tup) for tup in zip(*self.rows)]
  
Make matrix exercise compatible with Python3
## Code Before:
class Matrix(object):
    def __init__(self, s):
        self.rows = [[int(n) for n in row.split()]
                     for row in s.split('\n')]

    @property
    def columns(self):
        return map(list, zip(*self.rows))

## Instruction:
Make matrix exercise compatible with Python3
## Code After:
class Matrix(object):
    def __init__(self, s):
        self.rows = [[int(n) for n in row.split()]
                     for row in s.split('\n')]

    @property
    def columns(self):
        return [list(tup) for tup in zip(*self.rows)]
