def swap(a, b): temp = a # spara a i temp a = b # kopiera b till a b = temp # kopiera temp till b x = 7 y = 5 swap(x,y) print('x=', x, 'y=', y)