views:

112

answers:

1

Why does this fail L is [1,2,3,4], and this works: L = [1,2,3]?

But L is 1, and L = 1 both work the same.

+2  A: 

Is should only be used when evaluating arithmetic operations on the right-hand side. I.E:

X is 1 + 2 + 3
Absolute0