Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Saturday, January 25, 2014

Python CodeAcademy

Variables, which store values for later use
  • Data types, such as numbers and booleans
  • Whitespace, which separates statements
  • Comments, which make your code easier to read
  • Arithmetic operations, including+-*/**, and %

Executing a Python Script from Notepad++

  1. Switch back to Notepad++, and go up to the menu bar, select Run, and then select Run... (F5)
  2. Insert the following in the text box that appears:
    C:\Python27\python.exe -i "$(FULL_CURRENT_PATH)"
  3. Click Save...
  4. Configure CTRL+R to be the command.  Give it a name, and press OK.

Python on Windows 7

Source: http://www.cs.utexas.edu/~mitra/bytes/start.html

Installation of Python

  • Download the current production version of Python (2.7.1) from the Python Download site.
  • Double click on the icon of the file that you just downloaded.
  • Accept the default options given to you until you get to the Finish button. Your installation is complete.

Setting up the Environment

  • Starting at My Computer go to the following directory C:\Python27. In that folder you should see all the Python files.
  • Copy that address starting with C: and ending with 27 and close that window.
  • Click on Start. Right Click on My Computer.
  • Click on Properties. Click on Advanced System Settings or Advanced.
  • Click on Environment Variables.
  • Under System Variables search for the variable Path.
  • Select Path by clicking on it. Click on Edit.
  • Scroll all the way to the right of the field called Variable value using the right arrow.
  • Add a semi-colon (;) to the end and paste the path (to the Python folder) that you previously copied. Click OK.