from typing import Iterable
import math


def deg2rad(degs):
    """Convert degree iterables to radian iterables"""
    if isinstance(degs, Iterable):
        rads = []
        for a in degs:
            rads.append(a * math.pi / 180)
    else:
        rads = degs * math.pi / 180
    return rads