MediumPython Syntax - RAGHU Vanaparthi - Medium
Sitemap
RAGHU Vanaparthi

RAGHU Vanaparthi

Python Syntax

--

the python syntax means a set of rules and regulations must be followed by the while writing code was syntax.

Statement: is a python instruction which python engine can execute.

Types of statement:-

1)Single Statement in single line

2)Multiple statement in singleline

3)Multiple Statements in multiple line

4)Single Statement in multiple line

  1. Single Statement in single line:

Single statment in single line means a single instruction is written in one line that statment in single line.

Press enter or click to view image in full size

2. Multiple statement in single line:

Get RAGHU Vanaparthi’s stories in your inbox

Join Medium for free to get updates from this writer.

Multiple statements in single line was More than one statement we use semicolon(;) to separate the statements.

Press enter or click to view image in full size

3)Multiple Statements in multiple line:

Multiple statement are written multiple lines.

Press enter or click to view image in full size

4)Single Statement in multiple line:

A single statement is divided into multiple line by using brackets ()or backslash\.

Press enter or click to view image in full size

--

--