What will be the output after the following statements? x = 3y = 7 print(x == y)
1 point
(a) y = 7 and x = 3
(b) True
(c) x = 3 and y = 3
(d) False
Answers
Answered by
0
Answer:
d
Explanation:
d) False
Answered by
0
Output: False
Concept:
== is the equality operator. It checks if the values of two operands are equal or not. The condition becomes true if they are equal and false if they are not equal.
Given Program:
x = 3
y = 7
print(x == y)
Find:
Find the output of the given code.
Solution:
The variable x is 3 and variable y is 7.
will check if x and y are equal or not.
If then it will return True else it will return False.
Here,
(∵ )
∴ The output is False.
Similar questions