About Programming on this Site

Stephen Lukacs (2) iquanta.org/instruct/python

Python has become the de facto standard programming language for science, engineering, and biomedicine throughout the world, replacing Fortran, because arithmetic, mathematics, and data analysis lie at the very center of the Python interpreter. Python itself is already installed on many operating systems and computers, e.g., MacIntosh and Raspberry Pi, and devices like calculators, e.g., Casio fx-9750GII. Or, it's downloadable and usable for free for those computers that don't inherently have it. Goto Python for more information.

This site is designed to give programming students a portal to learn and practice Python programming.

Since Python on the server is vulnerable, open to attack, or projects compiled on the server can be used to overrun its processors or memory, it was decided to provide a programming portal to serve up Brython, or Browser Python. Brython is client-side Python programming, which means Brython code will process and run on your computer or device and not directly on the server itself.

The server will serve up your code in four predetermined sections, i.e., the <page_script>, <header>, <body>, and/or <footer> to your computer, or any client computer or device if shared by yourself. The web browser on the client computer will process and display the HTML elements and compile and process the Brython code to interact with those HTML elements you've designed into your code. The server will also provide the libraries necessary for the client computer to process and compile the Brython code contained within your projects.

Many of the examples are compiled and run on the server to provide examples of pure Python or comparison of pure Python to Brython, but ultimately, your code will be pure Brython. Some pure Brython examples are "Math 0: Calculator: Fast Evaluation" and "Math 2: Practices: Math Worksheets". You'll see that Brython is very powerful and that the Brython code is either under the <head> or the <header> sections. Invisible to the user but compiled by the browser.

from py4web import URL

<page_scripts>
<script type="text/python">
brython_version = '.'.join([str(i) for i in __BRYTHON__.implementation[:3]])
print(f'brython version: {brython_version} ___ sjlukacs implementation')
</script>
</page_scripts>

<body>
<p>
Python has become the de facto standard programming language for science, engineering, and biomedicine throughout the world, replacing Fortran, because arithmetic, mathematics, and data analysis lie at the very center of the Python interpreter.  Python itself is already installed on many operating systems and computers, e.g., MacIntosh and Raspberry Pi, and devices like calculators, e.g., Casio fx-9750GII.  Or, it's downloadable and usable for free for those computers that don't inherently have it.  Goto <a href="https://www.python.org" target="python">Python</a> for more information.
</p>

<p>This site is designed to give programming students a portal to learn and practice Python programming.</p>

<p>Since Python on the server is vulnerable, open to attack, or projects compiled on the server can be used to overrun its processors or memory, it was decided to provide a programming portal to serve up Brython, or Browser Python.  Brython is client-side Python programming, which means Brython code will process and run on your computer or device and not directly on the server itself.</p>

<p>
The server will serve up your code in four predetermined sections, i.e., the &lt;page_script&gt;, &lt;header&gt;, &lt;body&gt;, and/or &lt;footer&gt; to your computer, or any client computer or device if shared by yourself.  The web browser on the client computer will process and display the HTML elements and compile and process the Brython code to interact with those HTML elements you've designed into your code.  The server will also provide the libraries necessary for the client computer to process and compile the Brython code contained within your projects.
</p>

<p>
Many of the examples are compiled and run on the server to provide examples of pure Python or comparison of pure Python to Brython, but ultimately, your code will be pure Brython.  Some pure Brython examples are <a href="{{=URL('python/exec/10')}}" target="examples">"Math 0: Calculator: Fast Evaluation"</a> and <a href="{{=URL('python/exec/12')}}" target="examples">"Math 2: Practices: Math Worksheets"</a>.  You'll see that Brython is very powerful and that the Brython code is either under the &lt;head&gt; or the  &lt;header&gt; sections.  Invisible to the user but compiled by the browser.
</p>
</body>

<footer>
<p>
Happy Programming, Stephen Lukacs, Ph.D.
</p>
</footer>