First page Back Continue Last page Overview Graphics

Using lambda Notation

Exercise:

Rewrite the previous example, using lambda notation.

temp = (36.5, 37, 37.5,39)

K = 5.0 / 9

F = map(lambda T: 1.8 * T + 32, temp)

C = map(lambda T: K * (T-32), F)