Why does my code have a syntax error

is this python2 or python3?

it is written in python 3

you’re missing the closing parens the line before

2 Likes