Answer:
The barebones of python program are Expressions, Statements, Comments, Functions, Block and Indentation. Expressions: They are the combination of symbols with values to evaluate. Comments: This is the additional information about the statement.
Expression is evaluated and produces the results.
Ex: (10=2)/2
Indicates that we are doing something.
Ex: a=10
print("Calling in proper sequence")
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 '''
A function is a block of code which only runs when it is called.
Ex: getStudentMarks()
A group of statements in block indentation at the same level creates a block.
Ex: all the statements that are under the function getStudentMarks()
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
Answer:
The barebones of python program are Expressions, Statements, Comments, Functions, Block and Indentation. Expressions: They are the combination of symbols with values to evaluate. Comments: This is the additional information about the statement.
Verified answer
1.Expression:
Expression is evaluated and produces the results.
Ex: (10=2)/2
2.Statements:
Indicates that we are doing something.
Ex: a=10
print("Calling in proper sequence")
3.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 '''
4.Function:
A function is a block of code which only runs when it is called.
Ex: getStudentMarks()
5.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()
:)