I am trying to run multiple lines of code via the same dataset. What I am trying to run is this:
10
x = {1, 2, 3, 4, 5}
y = {2, 8, 5, 10}
z = x.union(y)
z = x.intersection(y)
z = x-y
z = y-x
z = x.union(y) - x
z = z = x.union(y) - y
It won't let me run all the commands at the same time. Is there a way to do this that i'm missing?
EDIT: I want to do this:
10
x = {1, 2, 3, 4, 5}
y = {2, 8, 5, 10}
z = x.union(y)
print(z)
z = x.intersection(y)
print(z)
z = x-y
print(z)
z = y-x
print(z)
z = x.union(y) - x
print(z)
z = z = x.union(y) - y
print(z)
I want to run them all at the same time to save time. Let me know if things make sense