Question: In Python: # Q1: create a list that has the following items. # {1, 2 , 3 , 4 , 5} # you need to
In Python: # Q1: create a list that has the following items. # {1, 2 , 3 , 4 , 5} # you need to start with an empty list. and then add the above components # one by one. MyList = [ #create an empty list, 1 point MyList.-----(1) #add 1 to the list, 1 point MyList.-----(2) MyList.-----(3) MyList.-----(4) MyList.-----(5) # now find the length of the list. print(---(MyList)) # 1 point # select the starting and ending point such that it shows 2,3,4 print(MyList[-:-]) # 1 point # now, delet 1 from the list --- MyList[-]# 1 point # now, delete 3 from the list MyList.---()# 1 point
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
