Difference between revisions of "Python"

From OpenCircuits
Jump to navigation Jump to search
(mention Spyder, etc.)
(mention python-on-microcontrollers; python-in-browser; etc.)
Line 34: Line 34:
 
*Spyder is an open-source interactive development environment for Python that comes with Anaconda ( https://anaconda.com/ ).
 
*Spyder is an open-source interactive development environment for Python that comes with Anaconda ( https://anaconda.com/ ).
  
 +
 +
The vast majority of Python programs run as normal applications directly on a laptop or server
 +
running Linux, Windows, or macOS.
 +
Python can also run on:
 +
* [[Motherboards that run Linux]]
 +
* some [[microcontrollers]] -- see MicroPython and CircuitPython
 +
* PyScript project: Python running in-the-browser: https://pyscript.com/ , [https://www.infoworld.com/article/2335203/pyscript-brings-python-into-the-browser-more-easily-than-ever.html (a)], [https://www.infoworld.com/article/2335480/intro-to-pyscript-run-python-in-your-web-browser.html (b)], [https://www.itprotoday.com/python/anaconda-aims-to-democratize-python-with-pyscript (c)], etc.
 +
 +
 +
== Related ==
 +
 +
 +
* [[Why Python]] (FIXME: seems to duplicate this "Python" page?)
 +
* [[A Course On Python]]
 +
* [[Python Installation]]
 +
* [[Python Topics]]
 +
* [[Python Smart Terminal]]
 +
* [[:Category:Python Projects]]
 +
* [[Python and the Raspberry Pi]]
  
 
== Primary Links==
 
== Primary Links==
Line 40: Line 59:
 
*[http://en.wikipedia.org/wiki/Python_(programming_language) Python (programming language) From Wikipedia, the free encyclopedia]
 
*[http://en.wikipedia.org/wiki/Python_(programming_language) Python (programming language) From Wikipedia, the free encyclopedia]
 
*[http://ipython.org/ IPython.org]
 
*[http://ipython.org/ IPython.org]
 +
* [https://www.infoworld.com/article/2254260/how-to-get-started-with-python.html "How to get started with Python"].
  
 
*[[SageMath]]
 
*[[SageMath]]

Revision as of 22:56, 12 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/ ).


The vast majority of Python programs run as normal applications directly on a laptop or server running Linux, Windows, or macOS. Python can also run on:


Related

Primary Links