Анонимные функции


f = lambda x,y,z: x+y+z
apply(f, (1,2,3))

# Yield-инструкция

def reverse(data):
    for index in range(len(data)-1, -1, -1):
        yield data[index]

for char in reverse('summer'):
    print char