How do I concatenate two integer numbers (for example: 10 and 20) in Python to get a returned value of 1020?
using old-style string formatting:
>>> x = 10 >>> y = 20 >>> z = int('%d%d' % (x, y)) >>> print z 1020