if op in ["/"]:
# rounding does not rounds half up so I imported a modulefrom decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_DOWN
Decimal(str(answer)).quantize(Decimal("1.11"), rounding=ROUND_HALF_UP)
Decimal(str(given_answer)).quantize(Decimal("1.11"), rounding=ROUND_HALF_UP)
print("correct {}".format(answer, ".2f"))