what is an expression and a statement in python?
Answers
Answered by
3
Answer:
A statement is a complete line of code that performs some action, while an expression is any section of the code that evaluates to a value. ... That print is a statement is one of many warts in the Python 2 language that's corrected in Python 3. Now print is a normal function that can be used in an expression
Answered by
5
Explanation:
A statement is a complete line of code that performs some action, while an expression is any section of the code that evaluates to a value.
That print is a statement is one of many warts in the Python 2 language that's corrected in Python 3. Now print is a normal function that can be used in an expression.
Similar questions
Art,
6 months ago
Hindi,
6 months ago
Math,
1 year ago
Environmental Sciences,
1 year ago
Science,
1 year ago