About Lesson
Expression:
Expression is evaluated and produces the results.
Ex: (10=2)/2
Statements:
This indicates that we are doing something.
Ex: a=10
print(“Calling in proper sequence”)
Comments:
Comments are readable messages for a programmer but it is overlooked by the python interpreter.
a. Single line comment (#)
b. Multi-line comment (”’ ”’)
Ex: #this is a single-line comment
”’ this is
multiple ”’
Function:
A function is a block of code that only runs when it is called. Ex: getStudentMarks()
Block & Indentation:
A group of statements in block indentation at the same level creates a block. Ex: all the statements that are under the function getStudentMarks()