Question: solve Write a program whose input is two integers and whose output is the two integers swapped. Ex: If the input is: CO CA the
solve
Write a program whose input is two integers and whose output is the two integers swapped. Ex: If the input is: CO CA the output is: 8 3 Your program must define and call the following function. swap_values() returns the two values in swapped order. def swap_values (user_vall, user_val2) 675918.5259130.up3xqy7 LAB ACTIVITY 5.18.1: LAB: Swapping variables 0/ 10 main.py Load default template.. def swap_values (user_vall, user_val2): return user_val2, user_vall 4 if _name_ == '_main_': user_vall = int(input()) user_val2 = int(input()) swapped1, swapped2 = swap_values (user_vall, user_val2) print (swapped1, swapped2) Develop mode Submit mode When done developing your program, press the Submit for grading button below. This will submit your program for auto-gradingStep by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
