Question: Write a function print_greeting that consumes a name (as a string value) and prints out Hello X, where X is the given name. So for

Write a function print_greeting that consumes a name (as a string value) and prints out Hello X, where X is the given name. So for example, if the name "Bruce Wayne" was passed in, the function should print Hello Bruce Wayne.

I wrote:

def return_greeting(end): statement = "Hello " + end return statement print(return_greeting)

But my program for this assignment says it's not printing, Why isn't it and where is it incorrect/what is it supposed to be?

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!