Question: Objective: Use default values for optional arguments in functions. Write a function greet which returns a greeting message. The function should accept two parameters: name

Objective: Use default values for optional arguments in functions. Write a function "greet" which returns a greeting message. The function should accept two parameters: name and greeting. The greeting parameter has a default value of "Hi". Example: greet("John") should return "Hi John" and greet("John", "Hello") should return "Hello John". We have given you the starter code; modify it to handle the defaults
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
