Computer Science, asked by sakahimehta024, 3 months ago

what will be the output after the following statements? x = 3y = 7 print (x==y)​

Answers

Answered by rajshojha
1

mark me as brainlist and will follow you and thanked to you please

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