Simpan sebagai example8-12.py
Source Code
set1 = {"Budi", "Candra", "Malik"}
set2 = {90, 86, 79}
  
set1.update(set2)
print(set1)
Hasil Compile
C:\Users\PC Anda\Python>python example8-12.py
{'Budi', 'Candra', 'Malik', 86, 90, 79}