Question: Select the code that gives [ ' cat in a hat', 'fluffy dogs', 1 9 8 9 , 1 9 9 0 ] as the

Select the code that gives ['cat in a hat', 'fluffy dogs', 1989,1990] as the output.
newlist =['1000','2000','3000',1989,1990]
pr(n'?',list[-2:]+[ 'cat in a hat', 'fluffy dogs'])
newlist =[ 'cat in a hat', 'fluffy dogs', '1000','2000','3000']
pr(newlist [-2:]+[1989,1990])
new1ist =[1000',?'2000''3000', 'cat in a hat', 'fluffy dogs' ]
pr(new1ist [-1:]+[1989,1990])
Select the code that gives [ ' cat in a hat',

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 Programming Questions!