Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

1. Type this assignment statement into the Python shell: names = ['Bob', 'Ho', 'Zahara', 'Amitabha', 'Dov', 'Maria'] For the following steps, use names and slice notation: (a) Write an expression that produces this new list: ['Zahara', 'Amitabha', 'Dov'] (b) Write an expression that produces this new list: ['Bob'] (c) Write an expression that produces this new list: ['Amitabha', Dov', 'Maria'] 2. Given a list L and a value v, write an expression that removes the rst occurrence of v from L. 3. Write an expression that adds the string "How are you?" to the front of the list ["I am fine, thank y

OpenStudy (anonymous):

for point 3) its ["I am fine, thank you."]

OpenStudy (anonymous):

is this a test?

OpenStudy (anonymous):

this is one of those questions that makes me think "this person is going to get us to do his homework for him"

OpenStudy (anonymous):

i already did this course last fall, this was in one of my labs. I just put it here coz MIT also has python in 1st year

OpenStudy (anonymous):

ah, perhaps you can preface your statements next time with a "try these problems out"

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!