Question: Given two variables firstInClass and secondInClass which have already been associated with values, write code which swaps the values to which they are associated. For
Given two variables firstInClass and secondInClass which have already been associated with values, write code which swaps the values to which they are associated. For example, if firstInClass starts with the value "Pat", and secondInClass starts with the value "Wei", firstInClass should wind up associated with "Wei" and secondInClass should wind up associated with "Pat".
Note: you should NOT assign values to firstInClass and secondInClass.
CODE IN PYTHON
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
