diff --git a/odds.py b/odds.py new file mode 100644 index 0000000..7f2fed6 --- /dev/null +++ b/odds.py @@ -0,0 +1,3 @@ +# Odds omzetten tussen notaties +def decimaal_naar_amerikaans(d): + return round((d - 1) * 100) if d >= 2 else round(-100 / (d - 1))