What is Python?

Python is a very popular language that is designed to be easy to read and write. Python’s developer community adds value to the language by creating all types of modules and making them available to other programmers.

The core philosophy of the language is summarized by the document The Zen of Python:

  • Beautiful is better than ugly
  • Explicit is better than implicit
  • Simple is better than complex
  • Complex is better than complicated
  • Readability counts

Despite the fact Python is designed to be easy, there is still a learning curve. To make it easier to learn Python, a beginner can use Blockly to enhance his or her Python understanding.

While different programming languages have different semantics and syntax, they all share the same programming logic. Beginners can use Blockly to easily create a language-independent program, export it as Python code and use this newly created code to learn about Python syntax, structure and semantics.

Figures 1  show the Guessing Game program in both Blockly and Python formats. Figure 1 is a screenshot of the guessing game in Blockly. 


Figure 1 is the exported python code from the guessing game in blockly.



Last modified: Tuesday, 13 July 2021, 1:00 PM