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

Hi, I save my program in notepad of MSWord with extension .py but when I open that file and try to run it it does'nt work. I have to copy paste the same text in IDLE(python GUI) to run it. What am i doing wrorg?

OpenStudy (anonymous):

MSWord is not saving .py as a text file but as a MSWord file but with .py extension OR MSWord is using different format of encoding which don't work in Python. So, you should use Notepad or Notepad++ or when saving file from MSWord, select option Text Document (*.txt) and and put .py then save. Hope it helps.

OpenStudy (anonymous):

http://bytes.com/topic/python/answers/698915-python-notepad http://www.annedawson.net/Python_Editor_Notepad.htm this might help u gather an idea n help u solve your probelm hopefully!!!

OpenStudy (anonymous):

http://docs.python.org/faq/windows.html

OpenStudy (anonymous):

go to file and new window in your python window and add you code in that and save it. just a shift fast solution

OpenStudy (anonymous):

Thanks very much @Neeraj_OCW, @hiba, @bwCA, @Jey2012

OpenStudy (brandonredder):

Try using text pad and first change it to txt then remove the exstension

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!