Simpan sebagai example8-10.py
Source Code
buah = {"Jeruk","Mangga","Anggur"}
del(buah)
print(buah)
Hasil Compile
C:\Users\PC Anda\Python>python example8-10.py
NameError                                 Traceback (most recent call last)
<ipython-input-17-0389f7e7ddba> in <module>
      1 buah = {"Jeruk","Mangga","Anggur"}
      2 del(buah)
----> 3 print(buah)

NameError: name 'buah' is not defined