Beginner question: Logs?

Peter Hansen peter at
Thu Jun 2 15:36:53 CEST 2005

Elliot Temple wrote:
> from math import *
> log10(15625)

It's always a good idea, especially when answering a beginner's 
question, to add the caution that this form ("from xxx import *") has 
certain dangers** associated with it, and is widely considered poor 
style, and should really only rarely be used. (The math module is 
probably one of the few places where some people make an exception, 
however, but it's still not a good habit to get into.)


More information about the Python-list mailing list