code: def loads(cls, s):
          
          try:
              currency, amount = s.strip().split(' ')
              return cls(amount, currency)
          except ValueError as err:
              # RADAR: Python2
              money.six.raise_from(ValueError("failed to parse string "
                  " '{}': {}".format(s, err)), None)
docs: Parse from a string representation (repr)