Python Concepts

From Open Source Ecology
Revision as of 03:12, 22 May 2020 by Marcin (talk | contribs) (→‎Concepts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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