Python Classes - Goshen College
The list type has no replace method, so list instances don't either. >>> mylist.replace ('a', 'b') Traceback (most recent call last): File " ", line 1, in AttributeError: 'list' object has no attribute 'replace' User-defined types str, list, dict , bool, and tuple are all built-in types.