0

Hello everyone,
Can someone kindly explain me what is the basic difference between python statements and expressions? I'm too much confused about them and cannot upgrade my knowledge about Python until I get a full grasp on them because they are everywhere! Some explanation with example may help me a lot.
Thanks in advance.

4
Contributors
3
Replies
7
Views
8 Years
Discussion Span
Last Post by Stefano Mtangoo
0

A statement in python is something that is already set as what is does, if is a statement, break is another, print is a statement.

An expression is something that evaluates to something. Such as adding numbers or strings together evaluates to something.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.