odd = set([1, 3, 5, 7, 9])squares = set([1, 4, 9, 16]) print(odd ^ squares)
Standard input is empty
set([3, 4, 5, 7, 16])
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!