By Rupam Biswas
This Python program will check if there is any duplicate element available in the given array, which will be given by the user.
At first, it will take the total number of array elements that will be present in the array. The name of this variable is 'length' and the name of the array is 'userArray' in the program.
Then, it will take the array of elements from the user and will the array after that.
Then, it will find the duplicate item(s) presents in the given array. If it finds any duplicate item(s) present in the given array, it will print that otherwise, it will print "There is no duplicate element in the given array"
Here is the code:
Submitted by Rupam Biswas (Rupam)
Download packets of source code on Coders Packet