Using a generator expression is about as fast and much more space efficient than using a list comprehension.

Code
Diff
  • def ultimate_string_jumble_method(s):
        return sum(ord(c) for c in s.replace(' ', ''))
  • 11 def ultimate_string_jumble_method(s):
    2 return sum([ord(c) for c in s.replace(' ','')])
    2+ return sum(ord(c) for c in s.replace(' ', ''))