Question: Question 2: Remove Duplicates (2 points) Write function removeDup that takes in a list of items and removes any duplicates in that list while maintaining

 Question 2: Remove Duplicates (2 points) Write function removeDup that takes

Question 2: Remove Duplicates (2 points) Write function removeDup that takes in a list of items and removes any duplicates in that list while maintaining the order of the items. The function should return a list with only the first occurance of each item. Your function should be able to handle lists of numbers and strings. In (): def removeDup (data): pass *** YOUR SOLUTION HERE # YOUR CODE HERE raise Not ImplementedError() In [ ]: print("Test 1 : print("Test 2 : print("Test 3: ", removeDup([1,2,3,4,3,3,4])=={1,2,3,4]) ", removeDup( "The quick brown fox jumped over the lazy dog.") == ['T', 'h', 'e', '', 'q', 'u', 'i', 'c ", removeDup("I am Sam Sam I am would you like green eggs and ham?".split(" ")) == ['I', 'am', 'Sam' In I]: In (): Question 3: Vowels! (4 points) between. If Write a fucntion vowel() that takes a string and returns the largest substring that starts with a vowel, ends with a vowel, and has no vowels the string has less than 2 vowels return false . If two substrings have the same length, your code should return the first substring. In (): # YOUR CODE HERE raise Not ImplementedError() In [ ]: print("Test 1 : ", vowel("Hello this is a sample string longet vowel substring is annnnnnnnnnnnndie") == "annnnnnnnnnnnndi") print("Test 2 : ", vowel("But I regard the two names as describing one form only; for whether the government is in the print("Test 3 : ", vowel("") == False) In [ ]

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!