What is the output of the following code ?
set1 = {5, 6, 7} for i in set1: print(set1.add(i))
5 6 7
5 7 6
5 5 5
None None None
set1.add(i) returns None, so the output will be None 3 times
Comment here: