Define and call a function in interactive mode

#Define a function
>>> def hola():
        print "hola mundo"

#Call the function
>>> hola()
hola mundo

source

Comments are closed.