Python - Standard Library Usage
Why does
math.pow(2, 3) return a float while 2 ** 3 returns an integer?math.pow(2, 3) return a float while 2 ** 3 returns an integer?math.pow() always returns a float regardless of input types.** operator returns an integer if both base and exponent are integers and result fits in int.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions