Multiply #WEEKLY Usage of math module
Using the math module, I managed to use an equation to multiply two numbers. I used the
pow (to the tenth) function and
log10, creating a lambda function here:
math.pow(10, (math.log10(a) + math.log10(b)))
I can't wait to see what other solutions people come up with!
@Codemonkey51 But math isn't external. It is natively in Python, although not automatically in the program. (nearly) Every language has a default sqrt function, for example, and that is in the math module in Python. Also, it would be unfair for someone to not be able to do this in Python, but use the Math object in JS and get away with it since it doesn't use external libraries/modules.
do you think they will except this? XDDD