Python Interview Question & Answer Part 2 | Display duplicates in Python List
Problem Statement :- Write a program to print duplicate elements present in the list?
Input :
lst = [ 'Sunil' ,10 ,20 ,50 ,20 ,60 ,50 ,30 ]
Expected Output : [ 20, 50 ]
-------------------------------------------------------------------------
𝗝𝗼𝗶𝗻 𝗺𝗲 𝗼𝗻 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:🔥
-------------------------------------------------------------------------
*Instagram :
https://www.instagram.com/itjunction4all/
*Twitter:
https://twitter.com/sunilkr5672
#pythoninterview #pythoninterviewquestions #pythonprogramming #pythonforbeginners #python #pythonforbeginners #pythonlist #pythonlists #faang #maang