I have two lists such that each list contains no repeated elements. However, the lists do share some elements, and I want to combine the lists such that no elements are repeated. For example, if
list_1
is
and
list_2
is
, then the combined list should be
not
To accomplish this, what should go in place of "FILL ME IN" in the code below?
1 2 3 4 |
|
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This is a problem for noobs. Since the element is from list 2 we just wanna check whether it is in list 1 or not.