Define a function in Python : Function Define « Function « Python






Define a function in Python

Define a function in Python
 
def hello (what):
     text = "Hello, " + what + "!"
     print text
 
hello ("World")


           
         
  








Related examples in the same category

1.A function definitionA function definition
2.Power functionPower function
3.Define simple function in PythonDefine simple function in Python
4.A function that writes the Fibonacci series to an arbitrary boundaryA function that writes the Fibonacci series to an arbitrary boundary
5.Function call
6.Factorial functionFactorial function