or print ' '.join("%s=%d" % (y, x) for x,y in input)
1
input =[(3, 'x1'), (5, 'x3'), (2, 'x2')]
for i,j in input:
print("{}={}".format(j,i),end=" ")
print j,i because second one will come before first. Format is function used to print the values. If u want to print above in different lines rather than single then remove end=" "