Notes
Functions
Content of the notes (1)
Page 1
1.
>>> def your_name():
... print "Manoj Kaushal"
...
>>> your_name()
Manoj Kaushal
2. default return value is None
3. >>> def func1(x,y,z):
... return x+y+z
...
>>> func1(10,20,30)
60
>>> func1(x=10,y=20,z=30)
60
>>> func1(x=10,z=30,y=100)
140
4.
Information
- Description
- Note on Functions, created by inga pinga on 28/01/2016.
- Created by
- inga pinga
- Views
- 0
- Rating