Pages

Subscribe:

Ads 468x60px

Tuesday, December 13, 2022

How to define a function in python

 Defining a function in python is quit easy as c, c++, c#.

Here is the code how to define function in python.

def my_function(fname, lname):
  print(fname + " " + lname)

my_function("webhealer""Refsnes")

No comments:

Post a Comment