How to save and run python codes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nasersharifi
    New Member
    • Jun 2007
    • 1

    How to save and run python codes

    Hi all,

    I am so new to Python and have got no idea as to how to save the object codes and then how to run the exe--- either on linux or a windows platform.
    Looking forward to..........
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by nasersharifi
    Hi all,

    I am so new to Python and have got no idea as to how to save the object codes and then how to run the exe--- either on linux or a windows platform.
    Looking forward to..........
    On Windows, most beginners start with IDLE as their IDE. From the Start menu -> Programs -> Python 2.x -> IDLE (Python GUI). IDLE has a nice editor. You need to save your source files with the ".py" extension. Then, from the Run menu, pull down to Run Module (F5).

    Comment

    • Bellum
      New Member
      • Sep 2006
      • 23

      #3
      Originally posted by nasersharifi
      Hi all,

      I am so new to Python and have got no idea as to how to save the object codes and then how to run the exe--- either on linux or a windows platform.
      Looking forward to..........


      The source code is just a txt file with a py extension. Run it with the python interpreter to use it.

      Comment

      Working...