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