tutorial introduction although str(and repr(both create stringstheir output is usually slightly different str(produces the output that you get when you use the print statementwhereas repr(creates string that you type into program to exactly represent the value of an object for examplex str( ' repr( ' the inexact representation of in the previous example is not bug in python it is an artifact of double-precision floating-point numberswhich by their design can not exactly represent base- decimals on the underlying computer hardware the format(function is used to convert value to string with specific formatting applied for exampleformat( ," "' lists lists are sequences of arbitrary objects you create list by enclosing values in square bracketsas followsnames "dave""mark""ann""phillists are indexed by integersstarting with zero use the indexing operator to access and modify individual items of the lista names[ names[ "jeffreturns the third item of the list"annchanges the first item to "jeffto append new items to the end of listuse the append(methodnames append("paula"to insert an item into the middle of listuse the insert(methodnames insert( "thomas"you can extract or reassign portion of list by using the slicing operatorb names[ : returns "jeff""markc names[ :returns "thomas""ann""phil""paulanames[ 'jeffreplace the nd item in names with 'jeffnames[ : ['dave','mark','jeff'replace the first two items of the list with the list on the right use the plus (+operator to concatenate listsa [ , , [ , result is [ , , , , an empty list is created in one of two waysnames [names list(an empty list an empty list lib fl ff