[Python] Is it possible to use functions before declaring their body in python?

Discussão em 'Python' iniciado por Stack, Abril 28, 2025.

  1. Stack

    Stack Membro Participativo

    Is there any way to make possible to use functions in your file before you actually declare their body?

    The following code doesn't seem to work:

    abc = myFunction

    def myFunction():
    print "123"


    Thanks

    Continue reading...

Compartilhe esta Página