Syntax Variable
Syntax Variable
PYTHON PROGRAMMING
syntax and
variable
20
23
www.pantechelearning.com
intendation
tab initialize the block of code
comments
# comments are ignored by the interpreter during
the execution of the program.
Multiline statements
/ he line continuation character (\) to split a
statement into multiple lines.
basic syntax
Quotation
'' used to create string object in Python
www.pantechelearning.com
Indentation
indentation refer to the spaces at
tab
the beginning of the code line
www.pantechelearning.com
Importance of
Indicate the start and end of code blocks in python .
indentation
In other programming languages where curly braces {} or
other symbols are used to indicate the start and end of a
code block.
www.pantechelearning.com
comments
Comment start with a "#", and
#
python will render the rest of the
line a comment.
www.pantechelearning.com
Multiline Statement
line continuation character (\) to
\
denote the line should continue.
www.pantechelearning.com
Quotation
"" Python accept (‘),(“) and(“””)
quotes to denote strings
and multi lines
www.pantechelearning.com
Variable
www.pantechelearning.com
VARIABLE
Variables are containers for
storing data values
Variable The value stored in a variable
can be of any data type
Quotation
used to create string object in Python
www.pantechelearning.com
Rules for variable
Variable names are case-sensitive (age, Age and AGE are three
different variables)
www.pantechelearning.com
pantechelearning
Contact me for
us
89255 33484 [email protected]
www.pantechelearning.com