Computer Science, asked by like123kangna, 1 year ago

what is an expression and a statement in python?

Answers

Answered by yenula
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 5queen36
5

 Holaa

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