Here is a small snipet from the code which is causing the error.
num = input('Binary number? ')
base = input('base? ')
baseTen = 0
n = 1
for j in num:
    product = j*base**(len(num)-n)
    n += 1
    baseTen = baseTen + product
    print(baseTe)
The error message I recive is this:
    product = j*base**(len(num)-n)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
I am not sure what exactly is happening. Ive tried surrounding it with int() but that did not work. Thanks for any help in advance
