Computer Science, asked by khushinidhi456, 5 months ago

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 11a31JoanneTom
0

Answer:

d

Explanation:

d) False

Answered by varshamittal029
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.

x=3\\y=7\\

print(x==y) will check if x and y are equal or not.

If x=y then it will return True else it will return False.

Here, x\neq y

(∵ 3\neq 7)

∴ The output is False.

Similar questions