DiscreteMathematics/Lab_1/simplified_calculations.py

7 lines
230 B
Python

def simplified_calculations(input_sets, u_set):
results = []
results.append(u_set - input_sets[0])
results.append(results[0] | input_sets[1])
results.append(results[1] | (u_set - input_sets[2]))
return results