Computer Science, asked by manyajain252, 20 days ago

write output. a=100 print ( a in range (50,150)​

Answers

Answered by anindyaadhikari13
0

Required Answer:-

Correct C∅de:

a = 100

print(a in range(50,100))

To Find:

  • Output. (Language: Python)

Output:

  • True.

Explanation:

  • The print() statement is used to display message on the screen.
  • Inside the print() statement, it's written that - a in range(50, 150). It checks whether value of a is present between the given range or not i.e., between 50 and 150-1 or not.
  • 100 is present in the range 50 to 149. So, it returns True which is displayed on the screen.

Refer to the attachment.

•••♪

Attachments:
Similar questions