Say I have an array of integer values as such:
foo = [1, 5, 19, 27]
Now say I generate a list of values from 0 to 29 as such:
bar = range(30)
I want to print the values of bar without printing the values listed in foo.
How would I go about doing that in Python 2.7?
[EDIT]
I figured it out from this question python - Removing duplicates in lists
It turns out that my question is the same as "How to remove duplicates in lists" but I didn't figure that out when I was asking the question or searching for other questions similar to mine.
To put this question to rest, here's the answer:
list(set(bar) - set(foo))
That prints the values of bar without printing the values of foo.