Friday, August 26, 2011

Start PYTHON in LINUX

1.    Install gedit in your linux distro.
                         Every GNOME Linux distro have gedit. Because gedit is the official text editor 
                         of the GNOME desktop environment.

2.    Run gedit so we can fix few default setting:
             2.1 Open  'edit>preferences' select the 'editor' tab
             2.2 Changed tab width to 4
             2.3 Select 'insert spaces instead of tabs'
             2.4 Turn on “automatic indentation” as well
             2.5 Now, view tab turn on “display line numbers”.

3.    Open your 'Terminal program', run python.


     If you run python and its not there, install 'python 2' not 'python 3'.
     Type 'exit()' or 'ctrl+d' and get out of python.

Note :
  1.    Use gedit because it is simple and same on all computer/environment.
  2.    Never use 'Vim' or 'Emacs' these are for a better programmer.
  3.    Do not try to install 'python 3', it's not for beginners.