google.com, pub-8786015629279405, DIRECT, f08c47fec0942fa0 Write a Program to Implement Function in Python

Write a Program to Implement Function in Python

0


 

 

# Write a Program to Implement Function in Python


# Create function

def func(name):

    # Function DocString

    """

    This function func to

    the person passed in as

    a parameter

 

    """

    # Function Definition

    print("Hello, " + name + ". Good morning!")

    print(func.__doc__)


# Function call

func("A2PStudy")

 

Output:

Hello, A2PStudy. Good morning!

    This function func to

    the person passed in as

    a parameter

 

 


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Thank you for your interest 😊

We will back shortly after reviewing...

Thank you for your interest 😊

We will back shortly after reviewing...

Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top