Question: No chatgpt, no AI please : Write a function named get _ common _ elements that accepts two lists as parameters. The function will return
No chatgpt, no AI please : Write a function named getcommonelements that accepts two lists as parameters.
The function will return a new list of all elements that are common to both lists. The
new list should not have any duplicate values in it only unique values Note that the
lists don't need to be the same length, and one or both could be empty lists.
Example Executions
alist
blist
printgetcommonelementsalist blist # prints
alist
blist
printgetcommonelementsalist blist # prints
alist
blist
printgetcommonelementsalist blist # prints
alist
blist
printgetcommonelementsalist blist # prints
alist
blist
printgetcommonelementsalist blist# prints
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
