Python functions are 'typeless' : Function Parameters : Function : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Function   » [  Function Parameters  ]  Screenshots 
 



Python functions are 'typeless'




def times(x, y):      # create and assign function
     return x * y      # body executed when called



print times('Ni', 4)        # functions are 'typeless'

           
       
Related examples in the same category
1.  Four different ways to pass parameters Four different ways to pass parameters
2.  Passing value or passing address Passing value or passing address
3.  Pass string value into a function Pass string value into a function
4.  Pass immutable and mutable value into function Pass immutable and mutable value into function
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.