Abs

    0

    1

    HARIGOVIND VALSAKUMAR

    PythonAbs
    HGV Public Cookbook

    Find Absolute value.

    def abs_val(num):
        return -num if num < 0 else num
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.