Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 18 Online
OpenStudy (anonymous):

Hello, I am using Python 2.7.3 32 bit in a Windows 7 Home Premium OS, and for some reason I cannot the the logarithmic function to work. I have attempted to and this didn't work either. Can anyone tell me how to resolve this situation? Thanks.. Jim

OpenStudy (anonymous):

I doesn't matter the OS I think, try this line: from math import *

OpenStudy (anonymous):

OK I will do that and see what happens,

OpenStudy (anonymous):

it now gives me undefined 'from'

OpenStudy (anonymous):

I put it from math import*

OpenStudy (anonymous):

that didn't work either

OpenStudy (anonymous):

Now it say no module named modulemath.py

OpenStudy (anonymous):

Don't post a lot is like ... spamming, try several options and make one good post. I have 2.7.3 Python on a 64-bit W7, so is not the OS as I said I try this line and it work perfectly: from math import * print log(3)

OpenStudy (anonymous):

OK sorry about that Gianko, this is my first time to use this I didn't know how it works yet., but thanks for your help

OpenStudy (anonymous):

Ok don't worry, I get dizzy reading post after post actually; attach your code, maybe is something else, or you miss a space like on your 3rd post, between 'import' and '*'.

OpenStudy (anonymous):

OK the log function worked that time so believe it is OK now, that last time I put a space after the word import and before the * where as before I left out the space, So thank you very much Gianko 15, Jim

OpenStudy (anonymous):

(y) great then!! that little mistakes makes our lives misserable haha, cya.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!