Solution Exercise 22: List of duplicate elements without using the count() method
Exercise 22 Write an algorithm in python that returns the list of duplicate elements of a given list without using any predefined functions in Python. Example if L = [7,…