Why does not Python accept functions with no names?

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Sun Feb 20 10:32:21 EST 2022


Greetings list.

Out of curiosity, why doesn't Python accept
def ():
    return '---'

()

Where the function name is ''?

Kind Regards,

Abdur-Rahmaan Janhangeer
about <https://compileralchemy.github.io/> | blog
<https://www.pythonkitchen.com>
github <https://github.com/Abdur-RahmaanJ>
Mauritius


More information about the Python-list mailing list