#! /usr/bin/python

'''
Exercice du livre sur Python 3.

Ce code est diffusé sous la licence GPLv3 (http://www.gnu.org/licenses/gpl.html).
Copyright © 2010 Harold Erbin <harold.erbin@gmail.com>
'''

# Le module math contient la variable pi. À la place, nous aurions pu définir
# une variable pi dont la valeur aurait été 3.14.
import math

def perimeter(R):
    return 2 * math.pi * R

