Perform set theory operations using Python.
A = {1, 2, 3}
B = {2, 3, 4}
A = {1, 2, 3}
B = {2, 3, 4}

# Union of Sets
C = A.union(B) 
print(C) 

# Intersection of Sets 
C = A.intersection(B) 
print(C) 

# Difference of Sets 
C = A.difference(B) 
print(C)