Computer Science, asked by mohithingoranip88r98, 7 months ago

What is difference between expression and statement is python? Answer in 100 words.

Answers

Answered by Anonymous
34

Answer:

A statement does something. Statements represent an action or command e.g print statements, assignment statements. Expression is a combination of variables, operations and values that yields a result value. An expression is something that can be reduced to a value, for example "1+3" or "foo = 1+3"

Answered by shilpa85475
4

Explanation:

An expression can be defined as any element in our utility that evaluates some values. An expression evaluates a value.

A declaration does something.

Statements represent a motion or command e.g print statements, mission statements. Expressions need to be evaluated.

An expression is any series of symbols that represents a value. For example, 2.9, a + 5, (3 + 5) / 4.

An announcement is based on coaching that does something i.e. a few movements takes place.

For example: print("Hello")

Instructions are something that an interpreter can execute are known as statements.

For example, a = 1 is a task announcement. if announcement, for an announcement, at the same time as announcement, etc. are different types of statements with the intention to be mentioned later.

Similar questions