Pipe character in Python

This is also the union set operator

set([1,2]) | set([2,3])

This will result in set([1, 2, 3])

Leave a Comment