Python Code Generator (pycogen) is a tool to quickly generate python code by dragging blocks together,
and see the python code being built. It is built using Blockly and Highlight.js
Who is pycogen for?
pycogen is for people who:
How does it work?
The left panel on the screen is the canvas for code blocks. The blocks are organised into a menu of functional
types (loops, text, logic etc) from where they can be dragged onto the canvas. When on the canvas, blocks can be
snapped together to build a program. If you have used Scratch or other block coding tools before, this will all feel very familiar.
As the blocks are assembled, the panel on the right will begin to display the Python code that corresponds to the
block program. The Python code will be displayed with syntax highlighting to make it easier to read.
What can I do with the code?
Above the Python code panel are buttons that enable you:
...
Click here to launch a Python 3 REPL at repl.it in a new window
- with Bootstrap and highlight.js
site developed by Lee Larcombe