human
Comparing two lists in Python
assistant
Here is some code to list duplicated elements in two lists `listA` and `listB`

list(set(listA) & set(listB))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.