ldexp(x,i) function is the reverse of frexp(), it returns x * (2**i). It's a method of math module.
ldexp(x,i)
frexp()
math
>>> import math >>> math.ldexp(2,3)
16.0