I am not sure what I am doing wrong in this python code. My code works fro the first inputs but does not produce an output with any other values.

Answer:
straight-line code is executed exactly once
Explanation:
You want the reason your code does not produce more than one set of outputs.
Your code reads two inputs, swaps them, outputs the swapped values, and stops. This will give the behavior you have described.
If you want it to repeat, you need to put the code in a loop. Usually, such a loop will have a terminating condition, such as a number of executions, or an input value signifying the end of input data.