Is there any function that can convert a tuple into an integer?
Example:
input = (1, 3, 7) output = 137
The simplest method to change a tuple into a number is to use string formating.
input = (1, 3, 7) output = int('{}{}{}'.format(input[0], input[1], input[2])) # TEST print(output) # 137 print(type(output)) #