+ 2

What is differnce between expression and statement?

27th Mar 2018, 7:42 AM
Maninder $ingh
Maninder $ingh - avatar
2 Answers
+ 4
Statements represent an action or command e.g print statements, assignment statements. print 'hello', x = 1 Expression is a combination of variables, operations and values that yields a result value. 5 * 5 # yields 25 Lastly, expression statements print 5*5 For details: https://stackoverflow.com/questions/4728073/what-is-the-difference-between-an-expression-and-a-statement-in-JUMP_LINK__&&__python__&&__JUMP_LINK
27th Mar 2018, 7:47 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 1
what is ... questions are a good candidate for a google search: https://fsharpforfunandprofit.com/posts/expressions-vs-statements/
27th Mar 2018, 11:52 AM
Ulisses Cruz
Ulisses Cruz - avatar