As introduced in a previous lesson, programming languages know how to "crunch" quite a bit of mathematics.
In this case, let's study now to handle the famous number $\pi$ which is equal to 3.1415... . Here is the symbol
to use for $\pi$ in your code:

math.pi

Move the mouse over a dotted box for more information.

Notice the

`pi`

in the name. The prefix of `math.`

means that `pi`

is included in the "math"
library that the computer knows about. This something.something notation is very common in computer programming.
`print(math.pi)`

.
Type your code here:

See your results here:

Does your code work? Want to run it on your iPhone?

Here's your code:

- Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.
- Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into
this page
- Then click the "Use on iPhone" button that you'll see.