Python Syntax and Semantics

Python Syntax And Semantics

The syntax of the Python programming language is the set of rules that defines how a Python program will be written and interpreted (by both the runtime system and by human readers). Python was designed to be a highly readable language. It has a relatively uncluttered visual layout and uses English keywords frequently where other languages use punctuation. Python aims towards simplicity and generality in the design of its syntax, encapsulated in the mantra "There should be one — and preferably only one — obvious way to do it", from "The Zen of Python".

This mantra is deliberately opposed to the Perl and Ruby mantra, "there's more than one way to do it".

Read more about Python Syntax And Semantics:  Keywords, Indentation, Data Structures, Functional Programming, Objects, Exceptions, Comments and Docstrings, Function Annotations, Decorators, Easter Eggs

Other articles related to "python syntax and semantics, python, syntax":

Python Syntax And Semantics - Easter Eggs
... bracket programming languages, such as C or Java, sometimes expect or wish Python to follow a block-delimiter convention ... Brace-delimited block syntax has been repeatedly requested, and consistently rejected by core developers ... The Python interpreter contains an easter egg that summarizes its developers' feelings on this issue ...