Add list to set .update method
This commit is contained in:
parent
8061e474e2
commit
41a915eac4
|
@ -1,5 +1,6 @@
|
||||||
2024-06-09 Mert Gör <mertgor@masscollabs.xyz>
|
2024-06-09 Mert Gör <mertgor@masscollabs.xyz>
|
||||||
|
|
||||||
|
* python/Python.pdf: add list to set
|
||||||
* python/Python.pdf: Kümeler (Sets) sayfa 79
|
* python/Python.pdf: Kümeler (Sets) sayfa 79
|
||||||
* python/Python.pdf: Veri Yapılarının Açılması (Unpacing) sayfa 76
|
* python/Python.pdf: Veri Yapılarının Açılması (Unpacing) sayfa 76
|
||||||
|
|
||||||
|
|
4
python/add_list_to_set.py
Normal file
4
python/add_list_to_set.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
mert = set('mert')
|
||||||
|
gor = ['g','o','r']
|
||||||
|
mert.update(gor)
|
||||||
|
print(mert)
|
Loading…
Reference in New Issue
Block a user