# Write a Python program to Convert Binary tuple to Integer # Python3 code to demonstrate working of # Convert Binary tuple to Integer# Using join() + list comprehension + int()  # initializing tupletest_tup = (1, 1, 0, 1, 0, 0, 1)  # printing original tupleprint("The original tuple is : " + str(test_tup))  # using int() with base to get actual numberres = int("".join(str(ele) for ele in test_tup), 2)   # printing result print("Decimal number is : " + str(res)) 