Python enables the programmer to filter a list (also called list comprehension). The Python lambda function enables a programmer to define "anonymous" functions. For the list, a, defined below what would be the filtered result? a = [ 2, 3, 5, 7, 8, 10] filter(lambda x: not (x % 2), a)单项选择题
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
numbers = [1, 4, 6]Which of the following would produce the result: [6]
Question at position 1 What will be the output of the following code? [1, 2, 3, 4, 5][1, 3, 5][2, 4][True, False, True, False, True]Clear my selection
Choose a, b, c or d as the best answer. 2. Which statement about Brutalist buildings would the author, most probably, agree with?
Section A: Read the text and answer the questions. Brutalism is an architectural style, introduced in the 1950s. It uses exposed concrete to create geometric structures with a grey appearance. Concrete buildings are often criticised as cold and ugly, lacking the warmth of stone or the smooth feel of steel. However, concrete, as a building material, has unique characteristics. It is extremely flexible when wet, and is adapted to create interesting shapes. Many urban public buildings, such as universities, have also used concrete as the main material to indicate strength and permanence. Instead of keeping Brutalist buildings, many are being demolished to make space for modern styles. However, this does not acknowledge the cultural history of these buildings, and is not sustainable. Fill in the gap with ONE WORD from the paragraph. 1. Brutalist architecture included exposed concrete, which gave a cold Answer Question 1[input] .
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!