Question: Define the function print _ greeting to take two arguments: user _ name and time _ of _ day, that prints out a greeting. For

Define the function print_greeting to take two arguments: user_name and time_of_day, that prints out a greeting.
For instance, if the function is called by the line
print_greeting("Jeff", "morning")
The program will output
Good morning Jeff!
If the function is called with
print_greeting("Ted", "afternoon")
The program will output
Good afternoon Ted!

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 Programming Questions!