1

When I try to define this function on python (Wing101 IDE Mac OS) it says that there is a syntax error from the first ":" to the end of bool: I'm just trying to specify the return type after the arrow. I don't understand what's wrong, can someone help?

def destroymatrix(text: str) -> bool:
DjaouadNM
  • 22,013
  • 4
  • 33
  • 55
Julio
  • 11
  • 1

1 Answers1

0

At a guess id say the python you're using is not python 3.x

See this quesition:

What does -> mean in Python function definitions?