Function Def in Python


#1

What does def mean in python? THanks


#2

in python the def keyword is used to define a procedure(function)

If you have any knowledge of languages like JavaScript , the syntax

function functionName(arguments){
      statements
}

is analogous to

def functionName(arguments):
    statements