[Tutor] calling a method directly

Jim Mooney cybervigilante at gmail.com
Tue Apr 21 06:19:34 CEST 2015


Is there any difference between these two since they give the same result,
and when is the second preferred?

>>> x = 'ABE'
>>> x.lower()
'abe'
>>> str.lower(x)
'abe'

-- 
Jim


More information about the Tutor mailing list