'aBcDe'.lower() works fine and returns 'abcde'.
So why can't I do this : '{0.lower()}'.format('aBcDe') ?
It returns the following error: AttributeError: 'str' object has no attribute 'lower()'
My guess is that the code figures out that the attribute is the entire string 'lower()', instead of 'lower' and it just doesn't work. So how can I call a method in this fashion?