Need help writing this function in python 3 -
this question has answer here:
- nested arguments not compiling 1 answer
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
Post a Comment