Ask your own question, for FREE!
MIT 6.189 Intro to Programming (Python) 7 Online
OpenStudy (anonymous):

Hello, I am a python noob and I need help running some code I have found on the internet in the run module or shell... the code I have should work 100% but I dont know how to run it to show the results... Code: def remove_duplicates(): t = ['a', 'b', 'c', 'd'] t2 = ['a', 'c', 'd'] for t in t2: t.append(t.remove()) return t referenced code from: http://stackoverflow.com/questions/7961363/python-removing-duplicates-in-lists

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!