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?
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.
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!!!
go to file and new window in your python window and add you code in that and save it. just a shift fast solution
Thanks very much @Neeraj_OCW, @hiba, @bwCA, @Jey2012
Try using text pad and first change it to txt then remove the exstension
Join our real-time social learning platform and learn together with your friends!