Difference between revisions of "Python"

From OpenCircuits
Jump to navigation Jump to search
(mention Spyder, etc.)
Line 1: Line 1:
 
=Python is a Great Language=
 
=Python is a Great Language=
  
So are others, but for some purposes Python may be the best
+
So are other [[Programming Languages]], but for some purposes Python may be the best
  
 
==Why==
 
==Why==
Line 29: Line 29:
 
==Ways to Run ==  
 
==Ways to Run ==  
  
*From text editor, save file, run with an interperter. ( Generally use Idle instead, nicer, almost as lean )
+
*From text editor, save file, run with an interpreter. ( Generally use Idle instead, nicer, almost as lean )
*IPython, a highy interactive environment ( I have not used )
+
*IPython, a highly interactive environment for Python ( I have not used )
 
*Idle ( as in Eric ) a really really basic, IDE
 
*Idle ( as in Eric ) a really really basic, IDE
 +
*Spyder is an open-source interactive development environment for Python that comes with Anaconda ( https://anaconda.com/ ).
  
  

Revision as of 13:42, 10 April 2025

Python is a Great Language

So are other Programming Languages, but for some purposes Python may be the best

Why

  • Has its own iconic cartoon [import antigravity] ( do you know of any for another language? )
  • Named after Monty Python, how cool is that.
  • Free
  • Runs on many OS's including the Raspberry PI.
  • Great interactive modes.
  • Concise, code often short without being cryptic.
  • Real language not a toy.
  • Widely used, lots of support books.....
  • Lots of libraries for doing lots of things.
  • Interpreted, but not all the time may be compiled.
  • Seems to play well with other languages.
  • Option for serious Object Orientation, almost everything is an object of a class.
  • No need to adopt the OO methodology for many programs.


But

  • Not statically typed which may not suit your tastes ( or may be a plus ).
  • Not the fastest, but often fast enough.


Ways to Run

  • From text editor, save file, run with an interpreter. ( Generally use Idle instead, nicer, almost as lean )
  • IPython, a highly interactive environment for Python ( I have not used )
  • Idle ( as in Eric ) a really really basic, IDE
  • Spyder is an open-source interactive development environment for Python that comes with Anaconda ( https://anaconda.com/ ).


Primary Links