# Challenges II

Slide solved ✓## Call len

Call the `len`

function, giving the string `"easy"`

as an argument.

Then call the `print`

function to print the result.

## Min and math

Calculate `75*42`

and `66*61`

and use `min`

to find the smaller of the two
values.

Then call `print`

to display the number you found.

## Defining a simple function

Define a function called `f`

that takes the single parameter `x`

. The function
must return `5*x`

.

## Sum of lengths

Define a function called `length_sum`

that computes the sum of the lengths of
two strings.

The function `length_sum`

should take two parameters. The two parameters are
strings.

Your function should compute the length of each string, storing these lengths in variables. Add the lengths together and return the result.

## Imperial to metric again

Define a function called `convert`

that takes two arguments, `feet`

and
`inches`

, computes `cm = 30.48*feet + 2.54*inches`

, and returns this number.

## Multiple functions

Define two functions, `f`

and `g`

.

`f`

should take a parameter named `x`

and return `x+3`

.

`g`

should take a parameter named `y`

and return `5*f(y)`

. Note that `g`

uses
the result from a call to `f`

to calculate its value.

After the two definitions, compute `g(3)`

. Remember to print the result.

What do you expect? Does the output match?