Need help writing this function in python 3 -


this question has answer here:

how represent 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 coming

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

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -