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:
MrGeek
  • 21,097
  • 4
  • 28
  • 52
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?