?
Write a list comprehension equivalent for the Python code shown below.
Write a list comprehension equivalent for the Python code shown below.
for i in range(1, 101):
if int(i*0.5)==i*0.5:
print(i)
for i in range(1, 101):
if int(i*0.5)==i*0.5:
print(i)
Join the Discussion
Login to post a comment or share your explanation.
Login