Post

@PythonPr Answer: A (True). x = 5 assigns 5 to x. Then x == 5 checks if x equals 5, which is True.
For beginners: = assigns a value, == compares values. x = 5 means "make x equal to 5", x == 5 means "is x equal to 5?"
English

@PythonPr A. True is the answer
5 has been assigned to the variable X so the program checks if X is equal to 5 which it is. So, the output is true.
English

@PythonPr True, it returns the evaluation of the logical expression. X equal to 5, which is True.
English

@PythonPr == checks if something is true or false. Since x=5 is true, the output will be
A) True
English














