Syntax error in Parameters to function in python

  Kiến thức lập trình

Receiving a syntax error when attempting to call a function from another function. This in Python 3.12.

I am not sure what is wrong with the code:

E       def formatAuthorityNames(authorityName: str):
E                                             ^
E   SyntaxError: invalid syntax

What is wrong with the code?

This was working prior to updating to Python 3.12 from 3.10.

New contributor

Deborah Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

3

LEAVE A COMMENT