SyntaxFix
Write A Post
Hire A Developer
Questions
Try this solution:
def binary_int_to_decimal(binary): n = 0 for d in binary: n = n * 2 + d return n