diff --git a/ChangeLog b/ChangeLog index 83ba193..7ae0446 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2024-06-09 Mert Gör + * python/Python.pdf: add list to set * python/Python.pdf: Kümeler (Sets) sayfa 79 * python/Python.pdf: Veri Yapılarının Açılması (Unpacing) sayfa 76 diff --git a/python/add_list_to_set.py b/python/add_list_to_set.py new file mode 100644 index 0000000..296b7d4 --- /dev/null +++ b/python/add_list_to_set.py @@ -0,0 +1,4 @@ +mert = set('mert') +gor = ['g','o','r'] +mert.update(gor) +print(mert)