3 ms·
Because many languages don't require whitespace between symbols (e.g. x) and operators (e.g. +). So in Python, x+3 is valid (x plus three). As is x+y. And x-y.
by askvictor 4y ago
Because many languages don't require whitespace between symbols (e.g. x) and operators (e.g. +). So in Python, x+3 is valid (x plus three). As is x+y. And x-y. So how does the interpreter/compiler know if coffee-bean is a single variable, or an operation (coffee - bean) between two variables?
- brookst 4y agoSounds like job security! x-y = ‘a string or something’ # # bunch of lines of code here # x = 5 y = 2 assert x-y == 3