variables initial values temp temp temp no value yet as you can see from the final values of and ythe swap was successful in this case this sort of three-way shuffle is common in other programming languages in pythonthe simultaneous assignment statement offers an elegant alternative here is simpler python equivalentxy yx because the assignment is simultaneousit avoids wiping out one of the original values simultaneous assignment can also be used to get multiple numbers from the user in single input consider this program for averaging exam scoresavg py simple program to average two exam scores illustrates use of multiple input def main()print("this program computes the average of two exam scores "score score eval(input("enter two scores separated by comma")average (score score print("the average of the scores is:"averagemain(the program prompts for two scores separated by comma suppose the user types the effect of the input statement is then the same as if we had done this assignmentscore score we have gotten value for each of the variables in one fell swoop this example used just two valuesbut it could be generalized to any number of inputs of coursewe could have just gotten the input from the user using separate input statements score eval(input("enter the first score")score eval(input("enter the second score")