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

1st Nov 2016, 1:41 PM
petra
4 ответов
+ 3
x is a variable with value 7, it can then change depending on the program
1st Nov 2016, 2:54 PM
Rodrigo Tallar
Rodrigo Tallar - avatar
+ 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.
11th Nov 2016, 7:00 PM
Luke ward
Luke ward - avatar
+ 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.
1st Nov 2016, 3:54 PM
Kirk Schafer
Kirk Schafer - avatar
0
thanks everyone that your opinion can explain and helping me to learn more the python..i'm only amateur..thanks
3rd Nov 2016, 12:38 PM
petra