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
Which argument of print( ) would you set for:
(i) changing the default separator (space) ?
(ii) printing the following line in current line ?What all components can a Python program contain ?
What do you understand by block/code block/suite in Python ?
What are operators ? What is their function ? Give examples of some unary and binary operators.