class (see section can be thought of as template for creating custom type of object hello dir(sprint (dflush =trueprint the list in flushed format ['__add__ ''__class__ ''__contains__ ''__delattr__ ''__dir__ '(many left out'replace ''rfind ''rindex ''rjust ''rpartition ''rsplit ''rstrip ''split ''splitlines ''startswith ''strip ''swapcase ''title ''translate ''upper ''zfill 'dot notation any attribute attr of an object obj can be accessed via the dot notationobj attr to find more information about any object use the help function hello help( replace replace method of builtins str instance replace (old new[count ]-str return copy of with all occurrences of substring old replaced by new if the optional argument count is given only the first count occurrences are replaced method this shows that the attribute replace is in fact function an attribute that is function is called method we can use the replace method to create new string from the old one by changing certain characters 'hello replace (' ',' 'print ( hallo in many python editorspressing the tab keyas in objectname will bring up list of possible attributes via the editor' autocompletion feature type types and operators each object has type three basic data types in python are str (for string)int (for integers)and float (for floating point numbersthe function type returns the type of an object type ([ , , ] type (( , , ) type ({ , , }print ( , ,