Path: blob/master/İleri Seviye Veri Yapıları ve Objeler/Videolardaki Notebooklar/İleri Seviye Kümeler (Sets).ipynb
765 views
Kernel: Python 3
In [5]:
In [6]:
Out[6]:
set
In [7]:
In [8]:
Out[8]:
set
In [9]:
In [10]:
In [11]:
Out[11]:
{1, 2, 3}
In [12]:
In [13]:
Out[13]:
{' ', 'D', 'P', 'a', 'g', 'h', 'i', 'l', 'm', 'n', 'o', 'r', 't', 'y'}
In [14]:
In [15]:
Out[15]:
{'Php', 'Python'}
In [16]:
In [17]:
Out[17]:
Muz
Armut
Kiraz
Elma
In [18]:
In [19]:
Out[19]:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-19-1ae75c28907a> in <module>()
----> 1 x[0]
TypeError: 'set' object does not support indexing
In [20]:
Out[20]:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-20-8627f284d48b> in <module>()
----> 1 x["Python"]
TypeError: 'set' object is not subscriptable
In [21]:
In [22]:
Out[22]:
['Php', 'Javascript', 'Java', 'Python']
In [23]:
Out[23]:
Php
Javascript
Java
Python
In [35]:
In [36]:
In [37]:
Out[37]:
{1, 2, 3, 4, 5, 6}
In [38]:
In [39]:
Out[39]:
{1, 2, 3, 4, 5, 6}
In [40]:
In [41]:
Out[41]:
{-2, 3, 10, 100}
In [42]:
Out[42]:
{-1, 23}
In [43]:
Out[43]:
{-2, 1, 2, 3, 10, 34, 100}
In [44]:
Out[44]:
{-1, 1, 2, 23, 34}
In [45]:
In [46]:
Out[46]:
{-2, 3, 10, 100}
In [47]:
In [48]:
In [49]:
Out[49]:
{1, 3, 4, 5, 6}
In [50]:
In [51]:
Out[51]:
{1, 3, 4, 5, 6}
In [52]:
In [53]:
Out[53]:
{1, 2, 34}
In [54]:
Out[54]:
{-2, 1, 2, 3, 10, 34, 100}
In [55]:
Out[55]:
{-1, 1, 2, 23, 34}
In [56]:
In [57]:
Out[57]:
{1, 2, 34}
In [58]:
In [59]:
Out[59]:
False
In [60]:
Out[60]:
True
In [61]:
In [62]:
Out[62]:
True
In [63]:
Out[63]:
False
In [64]:
In [65]:
Out[65]:
{-2, -1, 1, 2, 3, 10, 23, 34, 100}
In [66]:
In [67]:
Out[67]:
{-2, -1, 1, 2, 3, 10, 23, 34, 100}
In [ ]: