QUESTION

Text
Image

How do I do this in Python? Please explain


Swap Two Values We have learned in Step 3 that flip of an image left to right involves swapping a pair of pixel values. Let's get more used to swapping values. Assume that two integers are declared as num1 and num2. Write code that swaps the values of num1 and num2 using the strategy we learned. The variables num1 and num2 are declared by Stepik. Also, please don't use the print function to show your results. Stepik is able to automatically check whether num1 and num2 are swapped correctly. Sample Input: 811 Sample Output: 118

Public Answer

M3ROMT The First Answerer