summaryrefslogtreecommitdiff
path: root/progs/a145.py
blob: 9f27291804e4f67ff763d9b3ab671244a4e1e5c2 (plain)
1
2
3
4
5
6
def sector_area(r,a):
    pi=22/7
    if a >= 360:
        return None
    sectorarea = (pi*r**2) * (a/360)
    return sectorarea