Drop links or images here to add them to the editor.

Het volgende programma berekent de prijs inclusief 19% BTW:

### GLOBALE VARIABELEN
BTW = 0.19  # 19% btw

### FUNCTIE DEFINITIES
def berekenPrijsInclBTW(prijs_zonder_BTW):
    prijs_incl_BTW = prijs_zonder_BTW * (1 + BTW)
    afgeronde_prijs_incl_BTW = round(prijs_incl_BTW, 2)
    return afgeronde_prijs_incl_BTW

### HOOFDPROGRAMMA
prijs_verf_exclBTW = 19.90
prijs = berekenPrijsInclBTW(prijs_verf_exclBTW)
print("Prijs inclusief btw is:", prijs)

Op Prinsjesdag wordt het BTW-tarief verhoogd naar 21%. Pas de globale variabele BTW aan zodat de juiste prijs wordt berekend.

Verwachte uitvoer:

Prijs inclusief btw is: 24.08