Call map() with two arguments:
1. A Lambda function that returns the square of the number it was called
with
2. A list holding the even numbers between 4 and 15; generate the list inline
using range()
>>> map(lambda g: g*g, range(4,16,2))
[16, 36, 64, 100, 144, 196]
Computer Science & Information Technology
You might also like to view...
Determine the space between controls in a form or report using ________
A) conditional formatting B) spacing C) line spacing D) padding
Computer Science & Information Technology
What is the output of the following code?
int a = 3, b = 2; int c = 0; while (c < 3) { a = a + b; cout << a << “ “; c = c + 1; } cout << b;
Computer Science & Information Technology