union(), Everything in both sets., name = set_a | set_b, |, intersection(), Only items found in both sets., name = set1 & set2, &, difference(), Items in the first set that are NOT in the second., name = set_a - set_b, -, symmetric_difference(), Items in either set, but NOT both., name = set_a ^ set_b, ^

set methods python

Tulostaulu

Visuaalinen tyyli

Vaihtoehdot

Vaihda mallia

Säilytetäänkö automaattisesti tallennettu tehtävä ?