print"but python provides string repeat operator for duplicating or repeating string that produces the same resultsprint"- lists python list is built-in collection type that stores an ordered sequence of object references in which the individual items can be accessed by subscript list can be created and filled using comma-separated sequence within square brackets for examplethe first statement in the code segmentgradelist lista [two empty lists listb list(creates five-element list containing the specified integers and stores reference to the list in the gradelist variable the resulting gradelist is illustrated heregradelist element access list elements are referenced using the same square bracket subscript notationused with strings as with stringsthe elements are numbered in sequential orderwith the first element having index zero negative subscripts can also be used to reference the elements starting from the end print'first item 'gradelist[ print'last item 'gradelist[- list can be printed using the print(functionas can most python data typesor it can be converted to string consider the following code segmentastring strgradelist printgradelist which produces the following output [ the elements of list can also be accessed by traversing the list using the iterator mechanismfor element in gradelist printelement