Swap given two numbers and print them. (Try to do it without a temporary variable.) and return it.
Example 1:
Input: a = 13, b = 9
Output: 9 13
Explanation: after swapping it
becomes 9 and 13.
Ã¢â¬â¹Example 2:
Input: a = 15, b = 8
Output: 8 15
Explanation: after swapping it
becomes 8 and 15.
Your Task:  
You don't need to read input or print anything. Your task is to complete the function get() which takes a, b as inputs and returns the list of integers contains the new value of a and b after swap.
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
Constraints:
1 ≤ a, b ≤ 10^{6}

Source: geeksforgeeks | Difficulty: EASY
Tags: Mathematics

Starter code: #User function Template for python3

class Solution:

    def get(self, a, b):

        #code here

Solutions:
class Solution:

	def get(self, a, b):
		a = a + b
		b = a - b
		a = a - b
		return (a, b)


class Solution:

	def get(self, a, b):
		res = []
		res.append(b)
		res.append(a)
		return res


class Solution:

	def get(self, a, b):
		c = int(a)
		a = int(b)
		b = int(c)
		return (a, b)


class Solution:

	def get(self, a, b):
		t = a
		a = b
		b = t
		arr = []
		arr.append(a)
		arr.append(b)
		return arr


class Solution:

	def get(self, a, b):
		t = a
		a = b
		b = t
		aa = []
		aa.append(a)
		aa.append(b)
		return aa


class Solution:

	def get(self, a, b):
		l = []
		l.append(b)
		l.append(a)
		return l


class Solution:

	def get(self, a, b):
		y = []
		y.append(b)
		y.append(a)
		return y


class Solution:

	def get(self, a, b):
		lis = []
		(a, b) = (b, a)
		lis.append(a)
		lis.append(b)
		return lis


class Solution:

	def get(self, a, b):
		result = []
		a = a + b
		b = a - b
		a = a - b
		result.append(a)
		result.append(b)
		return result