Q31. Which of the following list comprehensions is equivalent to this loop? result = [] for x in range(5):     result.append(x * 2)单项选择题

A

[x * 2 for x in range(5)]

B

[x for x in range(5) * 2]

C

[x * 2 in range(5)]

D

[x * 2 for range(5)]

E

[x for x * 2 in range(5)]

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!