Workout if a string holding a version number is higher than another string holding a version number in Python 3.
This is what I have tried:
request_version = "1.10.1"
current_version = "1.11"
if Decimal(request_version) > Decimal(current_version):
pass
However, I get this error, why?
InvalidOperation at /api/version/
[<class 'decimal.ConversionSyntax'>]