Add list to set .update method
This commit is contained in:
parent
8061e474e2
commit
41a915eac4
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
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: 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 a new issue