PEMDAS

    0

    0

    3.0 + 3 = 6.0

    6.0 - 3 = 3.

    #PEMDAS
    #() Parentheses
    #** Exponents
    #* Multiplications
    #/ Divison
    #+ Addition
    #- Subtraction
    #Examples
    print(3 * 3 + 3 / 3 - 3)
    # 3 * 3 = 9
    # 3 / 3 = 1.0
    # 9 + 1 = 10.0
    # 10.0 - 3 = 7.0
    #If Paretheses added it becone highest proirity
    #Example
    print(3 * (3 + 3) / 3 - 3)
    # 3 + 3 = 6
    # 6 * 3 = 18
    # 18 / 3 = 6.0
    # 6.0 - 3 = 3.0
    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.