# Using reduce() + lambda import functools my_tuple = (1, 4, 5) res = functools.reduce(lambda sub, ele: sub * 10 + ele, my_tuple)