Computer Science

What is an expression and a statement ?

Python Funda

45 Likes

Answer

An expression is any legal combination of symbols that represents a value. For example, 2.9, a + 5, (3 + 5) / 4.
A statement is a programming instruction that does something i.e. some action takes place. For example:
print("Hello")
a = 15
b = a - 10

Answered By

27 Likes


Related Questions