Python Concepts

From Open Source Ecology
Jump to: navigation, search

Intro

To run python, go into Terminal, and type python to run the python console. You get the >>> prompt.

Concepts

  • Command class - [1]
  • Modules - [2]. Create a program.py, then import program, and then program.funtion(parameter). You will run the function in program, passing in parameter.
  • Class - a bundle of data and functionality [3]
  • Object - is an instance of a class
  • Method - a function
  • Data - variables