Is there any function that can convert a tuple into an integer?

Example:

input = (1, 3, 7)

output = 137
Edit
Report