Dice Coefficient Calculation in Python

@blue_sky use code blocks instead of quoting. If you place three backticks (the ` sign) you get a block that’s in monospace. On the right you can even choose the programming language for syntax highlighting.

import os
import whatever

def f(x: int) -> float
    return x + 0.5 if "yes" else x + 0.1