Select Page

please solve this code. # are the question lst1 = [5, 5, 17, 9, 3,… please solve this code. # are the questionlst1 = [5, 5, 17, 9, 3, -7, 8, 11, -132]lst2 = [‘A’,’B’,’C’,’D’,’E’,’F’]# print statements are there to help you determine which item you’re seeing in the outputprint (“Part 1 – basics ” + “#”*20)# print the length of lst1print()# print the value of the 3rd element in lst1print ( )# update lst1, setting the second value to be 999# then print the lstprint()# sort the lst1, then print the value of the third elementprint ()# reverse lst2, then print out the 4th elementprint ()# update lst2, inserting ‘Z’ at index position 2# then print lst2lst2.insert()print()# note that we’ve made changes to the lists at this pointprint (“nPart 2 – slices ” + “#”*20)# print a slice of lst1, up to index 4print ()# print a slice of lst1, starting at index 2print ()# print a slice of lst1, from index 3 to 7print ()# print a slice of lst2, which includes every other itemprint ()print (“nPart 3 – loops ” + “#”*20)# loop lst1, printing values that are even numbers# create a string of all the values in lst2, concatenated# by looping the list and adding each value to result# then print resultresult = “”print (result)Computer ScienceEngineering & TechnologyPython Programming CS 111

Order your essay today and save 20% with the discount code ESSAYHELP