0

how to represent this code in python3 it's written in python 2

    def transform(x, y , (a, b, c, d, e, f)=matrix):
        return a*x + b*y + c, d*x + e*y + f

error

def transform(x, y , (a, b, c, d, e, f)=matrix):
                     ^
SyntaxError: invalid syntax

many more is coming

sherif
  • 71
  • 1
  • 8

1 Answers1

-2
def transform(x, y, matrix):
    (a, b, c, d, e, f) = matrix
    return a*x + b*y + c, d*x + e*y + f
sherif
  • 71
  • 1
  • 8
  • Please note that: 1. code-only answers aren't considered useful; 2. if posting self-answered questions you can post Q & A simultaneously; and 3. you still need to do basic checking for dupes etc. before posting. – jonrsharpe Sep 13 '17 at 23:11