1.

Write a list comprehension equivalent for the Python code shown below.

A. [i for i in range(1, 100) if int(i*0.5)==(i*0.5)]
B. [i for i in range(1, 101) if int(i*0.5)==(i*0.5)]
C. [i for i in range(1, 101) if int(i*0.5)=(i*0.5)]
D. [i for i in range(1, 100) if int(i*0.5)=(i*0.5)]View Answer
Answer» C. [i for i in range(1, 101) if int(i*0.5)=(i*0.5)]


Discussion

No Comment Found