Question: Q 3 : Given the following function call and the output it produces, define the greeting ( ) function. Make sure that the function does

Q3: Given the following function call and the output it produces, define the greeting() function. Make sure that the function does not print(), but return a string with the greeting. For that you need to concatenate (+) the strings, 'Hello, ' and the name of the person (parameter), and an exclamation!
print(greeting('John'))
Hello, John!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!