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.
smtareq
0
Newbie Poster
Recommended Answers
Jump to PostA 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.
All 3 Replies
lllllIllIlllI
178
Veteran Poster
slate
241
Posting Whiz in Training
Stefano Mtangoo
455
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.