Mega Code Archive
Categories
/
Python
/
Function
Define a function in Python
def hello (what): text = "Hello, " + what + "!" print text hello ("World")