Menu Close

Generate a greeting quote for admin

Mr.Greet is the name of the digital notice board placed at the entrance of the seminar hall. Its purpose is to welcome each and every participants of the seminar by showing a welcoming quote with their name on it.

It is based on the function Greet which takes a single parameter Name as String are the
names of the participants as input One by one.

Write the function definition for Greet which will generate the welcoming quote as below.
For example,
Input:
The Name is legacyB
Output:
Welcome legacyB
It is our pleasure inviting you
Have a wonderful day

Note:
“Name” must be of String Data Type

def Greet(Name):
    print("Welcome ",Name,"\nIt is our pleasure inviting you\nHave a wonderful day")

String=input("Enter the Name: ")
Greet(String)

INPUT_1:
Enter  the  Name:  legacyB

OUTPUT:
Welcome  legacyB
It  is  our  pleasure  inviting  you
Have  a  wonderful  day


INPUT_2:
Enter  the  Name:  fcukthecode

OUTPUT:
Welcome  fcukthecode
It  is  our  pleasure  inviting  you
Have  a  wonderful  day


INPUT_3:
Enter  the  Name:  Sonya  Blade

OUTPUT:
Welcome  Sonya  Blade
It  is  our  pleasure  inviting you
Have  a  wonderful  day


ILLUSTRATION

Executed using python3

Morae Q!