Computer Science, asked by maha2608, 4 months ago

It's computer please solve this very urgent and view the picture completely

If you give uncorrect answer I will report your answer ​

Attachments:

udayagrawal49: instead of 'and', it should be &&

Answers

Answered by anindyaadhikari13
5

Required Answer:-

Question:

  • Find the output of the following program. (Python)

Output:

  • False

Solution:

Given códe snippet,

a=10

b=20

print(a>10 and b<40)

We can see that,

  • a>10 is False as 10>10 is False.
  • b<40 is True as 20<40 is True.

Therefore,

a>10 and b<40

= False and True

= False

Result will be False because all the conditions are not True. While using and operator, result is True if all the conditions provided is True else False.


Anonymous: Amazing..!!
udayagrawal49: Great answer
Answered by itzRealQueen
4

Answer:

a>10 and b<40

=False and True

=Falaw

Similar questions