0
X =7 can anyone tell me that result are depend on the program or that the X result is depending of who make a program
4 ответов
+ 3
x is a variable with value 7, it can then change depending on the program
+ 2
depending on any program you use the variable setting always remains the same principle. It is up to you what you want x to be.
+ 1
Some contrasts. I think the first one is your question.
Python creates the variable on first assignment, if necessary. Javascript (for example) requires the variable to be identified as one before first assignment.
Python treats = as assignment (changing X) and == as equivalence. Other languages treat = as a test for equivalence, not changing X.
Case sensitivity. Python differentiates between 'x' and 'X'. SQL does not.
Python won't print the results of assignment (so it won't confirm by printing 7). A language like Octave does.
0
thanks everyone that your opinion can explain and helping me to learn more the python..i'm only amateur..thanks