Question: This program is getting the user's first name and last name, then displaying it to the user. It isn't working right and we need

This program is getting the user's first name and last name, then displaying it to the user. It isn't working

This program is getting the user's first name and last name, then displaying it to the user. It isn't working right and we need to make some changes. 1. On Line 5, return the values for firstname and lastname 2. On Line 8, call the display_name function and store its two return values to the two variables being used in the print statement: first_name, last_name 3. Run the code and enter the appropriate values so you match the output under Desired Output. Click Run to check your code. Click Submit to submit your code to your instructor. Redo 1 # Define the subtraction function 2 def display_name(): 3 4 Run 5 6 7 8 9 10 11 12 Save #Call the Function. Submit firstname input ("Enter your first name: ") lastname input ("Enter your last name: ") # Display Results print("Your name is", first_name, last_name) Your Output: Desired Output: Your name is Mickey Mouse

Step by Step Solution

3.47 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a corrected version that addresses those issues and matches the des... View full answer

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!