multiple items into tuple in onlyc:\codec:\python \python person py ('bob smith' ('sue jones' if this difference is the sort of detail that might keep you awake at nightssimply remove the parentheses to use print statementsor add an import of python ' print function at the top of your scriptas shown in ( ' add this everywhere herebut it' bit distracting)from __future__ import print_function you can also avoid the extra parentheses portably by using formatting to yield single object to print either of the following works in both and xthough the method form is newerprint('{ { }format(bob namebob pay)print('% % (bob namebob pay)format method format expression as also described in such formatting may be required in some casesbecause objects nested in tuple may print differently than those printed as top-level objects--the former prints with __repr__ and the latter with __str__ (operator overloading methods discussed further in this as well as to sidestep this issuethis edition codes displays with __repr__ (the fallback in all casesincluding nesting and the interactive promptinstead of __str__ (the default for printsso that all object appearances print the same in and xeven those in superfluous tuple parenthesesstep adding behavior methods everything looks good so far--at this pointour class is essentially record factoryit creates and fills out fields of records (attributes of instancesin more pythonic termseven as limited as it isthoughwe can still run some operations on its objects although classes add an extra layer of structurethey ultimately do most of their work by embedding and processing basic core data types like lists and strings in other wordsif you already know how to use python' simple core typesyou already know much of the python class storyclasses are really just minor structural extension for examplethe name field of our objects is simple stringso we can extract last names from our objects by splitting on spaces and indexing these are all core data type operationswhich work whether their subjects are embedded in class instances or notname 'bob smithname split(['bob''smith'name split()[- 'smithsimple stringoutside class extract last name or [ ]if always just two parts more realistic example