I'm totally new to Python, and I'm trying to run my server but I'm getting this syntax error from the project I'm working on.
def find_shortest_path(start: GraphNode, end, path=[]):
^
SyntaxError: invalid syntax
To be clear, I didn't write the code, I'm just supposed to style the project but I don't know how else to see the app without running it in the server.
This code appears to be using function annotations which are only available in Python 3.X.
What version of Python are you using?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With