Python Basics

 

Python Syntax

Python syntax is set of rules that describe how a program will be written and understandable to the interpreter. This program has similarities with other programming language like C, C++,java and php. It is a structured, object oriented and functional programming.

Python's syntax, designed for readability and simple of use, which makes it more popular.

Execute Python Syntax from the command prompt



Indentation

Python uses whitespace to define control flow blocks. It uses indentation to indicate the run of a block.

 


From the above example   colon comes before the indent on the block statement t be executed. If indent is placed after the error will be generated


Stephen Olubanji Akinpelu

Previous Post Next Post