Syntax

برنامه‌نویسی 2 views

Persian equivalent نحو زبان برنامه‌نویسی

In plain language Syntax specifies the order and punctuation used to write code.

Short definition It is the set of grammatical rules that determines which expressions and statements are valid in a language.

Detailed explanation and example

Omitting the colon after a Python if header can produce a SyntaxError. Syntactically valid code can still fail at runtime.

Reference