Question: using python 3: Given wordList=[that,was, hard] Use a list METHOD to place not in the list so wordList becomes [that, was, not, hard] Write 2

using python 3:

Given wordList=["that","was", "hard"] Use a list METHOD to place "not" in the list so wordList becomes ["that", "was", "not", "hard"] Write 2 Python statements that show TWO ways to create myList as an empty list: empList = ["abe", "bill", "sue", "dan", "enon"] print (empList, empList.pop(2)) tmp = [1, 2, 3, 4]: tmp.append((50, 60, 70)) print(tmp, len(tmp)) Add 10 to every element in scList: Show 2 ways to delete item from scList: empList = ["abe", "bill", "sue", "dan", "eon"] tmp = '*'.join(empList): print(tmp) tmp = " ".join(empList): print(tmp) scLst = [90,100,75,80]", scLst) scLst = [90,100,75,80]: scLst.reverse(): print("Reverse [90,100,75,80]: ", scLst) scLst = [90,100,75,80]: scLst.sort(reverse=True): print("Sort [90,100,75,80] use reverse arg", scLst) scLst = [90,100,75,80]: scLst = scLst.sort(): print("scLst=scLst.sort(): ", scLst) Ask the user which element to change, and ask them for the new value, and change the list. Example: myList = [10,200,30,40] Which element to change? 200 New value: 100 #now myLIst will be [10,100,30,40] def myFunc(tmpList): tmpList[1] = 90 listScores = [10, 20, 30] myFunc(listScores) print(listScores) What is the output? EXPLAIN What is the output? EXPLAIN What is the output? EXPLAIN What is the output? Describe the PROBLEM What is the output? EXPLAIN

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!