Convert degrees to radians

    0

    1

    math
    Python Snippets

    Python function that converts a value in degrees to radians.

    Shortcut: convert.degree.radian

    Filename pattern: *.py, *.ipynb

    from math import pi
    
    # convert degrees to radians
    def degree_to_radian(degree):
      return degree * pi / 180
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.