+ 2
Difference '-' operator giving confusing answer
first = {1, 2, 3, 4, 5, 6} second = {4, 5, 6, 7, 8, 9} print(second - first) #--------------------- #OUTPUT>> {8, 9, 7} #Why not {7, 8, 9} ?
6 Answers
first = {1, 2, 3, 4, 5, 6} second = {4, 5, 6, 7, 8, 9} print(second - first) #--------------------- #OUTPUT>> {8, 9, 7} #Why not {7, 8, 9} ?