I need some help in Python, to print:
I have:
input =[(3, 'x1'), (5, 'x3'), (2, 'x2')]
need to print, in this form:
x1=3 x2=2 x3=3
Many thanks
print ' '.join('%s=%s' % (k, v) for (v, k) in input)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With