This will give wholistic idea about functions in PYTHON
**def wishBirthday(name): #passing argument/parameter**
** """This function is used to wish birthday to someone""" **
** happy()**
** happy()**
** print("Happy birthday to you dear",name,'!')**
** happy()**
**wishBirthday("Sourabh")**
**wishBirthday("Jack")**
|
using . operator
|
wishBirthday.__doc__
|
|
using help function
|
help(wishBirthday)
|
|
help(len)
|
**def wishSourabh(): **
** happy()**
** happy()**
**print("Happy birthday to dear Sourabh")**
**happy()**
**def wishJack():**
** happy()**
** happy()**
** print("Happy birthday to dear Jack")**
** happy()**
**wishSourabh()**
**wishJack()**
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.