Fahrenheit to Celsius

    0

    0

    Mahendra Kumar

    beginnerbasicMaths

    Python Program to Convert Fahrenheit to Celsius

    # take inputs
    fahr = float(input())
    # calculate Celsius
    cel = (fahr-32) / 1.8
    # display result
    print('%0.1f degree Fahrenheit is equivalent to %0.1f 
                                degree Celsius' %(fahr, cel))
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.