R

Ram Sharma • 193.88K Points
Coach

Q. What is the output of the following program?

Code:
from math import sqrt
L1 = [x**2 for x in range(10)].pop()
L1 + = 19
print(sqrt(L1), end = " ")
L1 = [x**2 for x in reversed(range(10))].pop()
L1 + = 16
print(int(sqrt(L1)))
  • (A) 10.0 4.0
  • (B) 4.3588 4
  • (C) 10 .0 4
  • (D) 10.0 0
  • Correct Answer - Option(C)
  • Views: 195
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics