Back to: Python Tutorial

**Composition**:

One of the most useful features of programming languages is their ability to take small building blocks and compose them. For example, the argument of a function can be any kind of expression, including arithmetic operators:

x=math.sin(degrees/360.0*2*math.pi)

And even function calls:

x=math.exp(math.log(x+1))