Exercise 1

Assign the string value 'Everest' to a variable named mountain. Then embed it into the message below, by replacing the word 'hill'.

Exercise 2

Create a variable suffix, 'Mt.', to make things more formal. Use string arithmetic to add this to 'mountain', creating a new variable full_name and print it. Don't forget the space between the two!

Exercise 3

Mt. Everest is 29,029 feet tall. How many meters is this? Use arithmetic to create 'meter_height', as well as 'meter_height_rounded', rounding down to the nearest meter. Change your rounded figure to an integer type. Assume a value of 3.3 feet per meter.

Exercise 4

Let's calculate the volume of Mt. Everest, in cubic feet.

To do so, let's assume it is cone shaped. The formula for volume of a cone is: $$ V = \pi r^2 \frac h3 $$ Where r is the radius, and h is the height of the cone.

Assume the radius is 1 mile, or 5,280 feet, and the value of pi is 3.14.

Exercise 5

Wow, that's a big number!

Let's return to our restaurant from the prior exercise. Use python built in functions to return the maximum, minimum and total of the daily profits below.

This page may be helpful!