Post

@PythonPr The output is: y
Because the code is doing updates to the variables X and Y, but the last line is print("y") — that prints the string literal "y", not the value of the variable Y.
If it were print(Y), then it would print 8 (since Y = 2 and then Y = Y + 6 → 8).
English

@PythonPr Output: y
Because it is given in the quotes and assumed as a string. It will display as a character
English

@PythonPr it print y because its ok you are initiallizing 2 variables but you are printing a string "y"
English

@PythonPr None ist correct. It prints y and not Y
English

@PythonPr first value for y is 2. Then new y is equal first y plus 6. so new value of y is 8.
then sintax of print'y' shows 8 on the screen.
English

@PythonPr Answer : B)
Explaination: print("Y"), this prints char Y, since it is in double qoute of print function.
English

























