Syntax Error def python

help me

if i look at the title of your post:

Syntax Error def python

you mention the def keyword, but i don’t see the def keyword (which defines a function) in your code

Furthermore, It looks like you are trying to print (v) which isn’t defined via a variable. You could print(“v”) if you wanted, but you’d still get a different outcome than you were probably hoping for. It even looks like you attempted to write it from the bottom up, left to right with inverted indents. I’d recommend taking the python class over. Or a comedy class. Your choice.

1 Like