Functies in Dodona

Sign in to test your solution.
def aantal_wortels(a, b, c): determinant = (b ** 2) - (4 * a * c) wortels = "2 wortels" if determinant < 0: wortels = "geen wortels" elif determinant == 0: wortels = "1 wortel" return wortels # test de functie print(aantal_wortels(2, 4, -6))