How can I concatenate two integers in Python?

Cast both to a string, concatenate the strings and then cast the result back to an integer:

z = int(str(x) + str(y))

Leave a Comment