Function in Python3 - Coders PlayGround

Learn to code and change the future!

Tuesday, 29 August 2017

Function in Python3


Functions in Python

Hello friends, let us learn about function in Python3. 

We define function using the keyword def

So basically:

def function_name(para1,para2):
   #code

The default value returned is None.
You can check it:


Check out the sample program:

def example():
  print ('Yay! This is my function!')

for x in range(1,6):
  example()







PropellerAds