Write a python program to find the duplicate elements
Write a Python program to find the duplicate elements in a given array of integers. Return -1 If there are no such elements. 2. Write a Python program to select all the Sundays of a specified year. 3. Python files reading and writing. Download the “exercise_02_data _collection.zip” to your local and un-zip it. Write a program to read all the txt files and save the sentences in all the files into one csv file with two columns, the first column is sentence id (txt file name+sentence line number), the second column is the sentence text content. (4 points) Remove all the punctuations from the sentences, save the processed sentences into a new column in the same csv file. Ask the user to enter a word, return all the sentences that include this word, three kinds of information should be returned: sentence id, sentence text content, the count that user input word appear in the sentence. 4.Install packages nltk, numpy, scipy, pandas, and sklearn on Google Colab. Write a program to test whether they are installed successfully.