import math


def deg2rad(deg):
    """Convert degrees to radians.

    :param deg (float/list): angle(s) in degrees [deg]
    :return rad (float/list): angle(s) in radians [rad]
    """
    if type(deg) == list:
        rad = [math.radians(i) for i in deg]
    else:
        rad = math.radians(deg)

    return rad