Use of function in python

Use of function in python

Instructor-svgAl-Mamun Sarkar
Mar 25 , 2020

Use of function in the python programming language. The following code shows how to define and use a function in python.

def fun():
    print("Hello word")
    return 12


a = fun()
print(a)

 

Output:

Hello word
12

 

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram