F String Use

    0

    0

    The code will print the following

    Your score is 0 and your height is 1.

    #Use f string
    score = 0
    height = 1.8
    isWinning = True
    #f-string
    print(f"Your score is {score} and your height is {height} and you are {isWinning}")
    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.