Q.

What is the output of the following program?
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
Answer» C. 10 .0 4
3.7k
0
Do you find this helpful?
32

View all MCQs in

Python Programming

Discussion

No comments yet

Related MCQs