17. W hat would the following code do : X = Y = 7 ?
It will assign 7 to both X and Y.
17. W hat would the following code do : X = Y = 7 ? Read More »
It will assign 7 to both X and Y.
17. W hat would the following code do : X = Y = 7 ? Read More »
An expression is a line of code that evaluates to a value. e.g. a+5, 7//3 etc. Whereas a statement is an instruction that does something. e.g. a = 5, c = 7+6.
10. What is an expression and a statement ? Read More »