 Merhabalar Python programlama derslerinin bu bölümünde yeni bir veri türüne başlayacağız. Kümeler ya da İngilizce ismiyle _sets_, bir elemandan sadece bir adet tutan bir veri tipidir. Python'da oldukça önemli bir kullanım alanı vardır. ## Küme oluşturma Basit bir küme tanımı aşağıdaki yapılır:  Küme tanımı yaparken örneğimizde olduğu gibi süslü parantezler kullanılır. _type()_ fonksiyonu kullanarak a değişkeninin tipini ekrana yazdırmış olduk. Kümeler kullanım olarak diğer veri tiplerine oldukça benziyor. Örneğin boş bir kümeyi aşağıdaki gibi oluştururuz :  Tıpkı listelerdeki _list()_ fonksiyonu gibi kümelerde de _set()_ fonksiyonu bulunur. _set()_ fonksiyonunu kullanarak herhangi bir veri tipini kümelere dönüştürebiliriz. Aşağıdaki örneğe bakalım :  _myList_ listesi içerisinde tekrarlı elemanlara sahip olan bir liste. _set()_ fonksiyonunu kullanarak bu listeyi kümeye çevirmek istiyoruz. Ancak kümelerin bir elemandan ancak bir tane alabildiğinden bahsetmiştik. Böyle bir yapı kümeye dönüştüğünde içerisinde tekrarlı yapılar da olsa tek'e düşürülür ve öyle dönüştürülür. _set()_ fonksiyonunun içerisine benzer şekilde string veri de verebiliriz. Eğer string içerisinde tekrarlı harfler varsa onlardan sadece 1 er tane alacak şekilde bir küme oluşturacaktır. Uygulamasını görelim :  Şimdilik bu kadar. Umarım faydalı bir çalışma olmuştur. Teşekkürler.  Kaynak belirtilmeyen görseller bana aittir. The pictures without source in the post is belong to me <hr><center><sub>Posted via <a href="https://www.marlians.com/">Marlians.com</a></sub></center>
author | elektroyazilim |
---|---|
permlink | kuemeler-sets-1-python-dersleri-tutorials |
category | palnet |
json_metadata | {"tags":["palnet","zzan","stem","tr","programming","python","marlians"],"image":["https://cdn.steemitimages.com/DQmVqEHkajCZyuMfc1Nn7AfRj9QwYTddNmLcySkpi48PD1S/yeni.jpg","https://cdn.steemitimages.com/DQmNoHNZQ1zXrmQ9q28EhPVvY48CT2F9PqVaMgSXLEo9XTr/image.png","https://cdn.steemitimages.com/DQmcYLUs8nVEhsWBFSKtD5Tz6d1JKgqvmFaEushRxQrXSS3/image.png","https://cdn.steemitimages.com/DQmQSxhBrmdGeMt6mvZbiz4GMn5EPNKdNEXXfVsRu7sPZSi/image.png","https://cdn.steemitimages.com/DQmRb8on6rQ2yDbzXZuNZHqdNBT7pahGHD3JjVvrp7Ack4Y/image.png","https://cdn.steemitimages.com/DQmYZw2bhUomeivJwQ8CiLaTzXTbJPLd1PsSGdcoEE1DfKP/yesilayrca.png"],"links":["https://www.marlians.com/"],"app":"marlians/0.1","format":"markdown"} |
created | 2019-08-19 08:26:03 |
last_update | 2019-08-19 08:26:03 |
depth | 0 |
children | 11 |
last_payout | 2019-08-26 08:26:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 14.462 HBD |
curator_payout_value | 4.566 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,161 |
author_reputation | 73,919,354,200,140 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,694,387 |
net_rshares | 56,347,176,381,605 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
alex2016 | 0 | 198,636,474 | 100% | ||
steemyoda | 0 | 3,273,797,629,156 | 23.75% | ||
bukiland | 0 | 334,974,871 | 3.6% | ||
elviento | 0 | 1,386,292,863 | 1.02% | ||
sam99 | 0 | 7,324,443,377 | 3% | ||
joeparys | 0 | 1,539,660,882,167 | 25% | ||
koinbot | 0 | 1,172,688,096,978 | 100% | ||
imisstheoldkanye | 0 | 2,481,985,598 | 1% | ||
postpromoter | 0 | 8,349,825,784,423 | 68.66% | ||
steinhammer | 0 | 593,932,795 | 20% | ||
steemfunding | 0 | 2,077,993,966,034 | 92.92% | ||
steemlike | 0 | 203,584,271,770 | 100% | ||
steemlite | 0 | 249,902,995,795 | 100% | ||
beautifulwoman | 0 | 12,295,603,680 | 100% | ||
spydo | 0 | 5,114,910,857,965 | 83.17% | ||
mmmmkkkk311 | 0 | 1,297,972,370,367 | 28.13% | ||
neokuduk | 0 | 13,369,427,470 | 100% | ||
literaturk | 0 | 2,269,101,840 | 100% | ||
minnowvotes | 0 | 18,679,161,493,106 | 86.44% | ||
sudefteri | 0 | 11,644,342,856 | 100% | ||
akifane | 0 | 1,837,311,242 | 100% | ||
rasit | 0 | 368,101,626 | 100% | ||
bid4joy | 0 | 152,455,707,665 | 33.33% | ||
maveraunnehr | 0 | 369,084,785 | 100% | ||
dailyhouston | 0 | 401,213,525 | 75.76% | ||
redlambo | 0 | 201,487,584,410 | 33.33% | ||
luckyvotes | 0 | 2,093,465,480,784 | 92.8% | ||
ezravandi | 0 | 4,636,561,618 | 2.6% | ||
emotionalsea | 0 | 3,034,714,831 | 30% | ||
brupvoter | 0 | 2,619,855,704,689 | 65.82% | ||
inciter | 0 | 4,215,463,140,600 | 88.48% | ||
informator | 0 | 1,938,663,901 | 14.06% | ||
soteyapanbot | 0 | 18,680,717,872 | 20% | ||
edensgarden | 0 | 1,144,534,323,387 | 84.62% | ||
oceansbot | 0 | 104,658,774 | 75.76% | ||
thebot | 0 | 730,804,427,134 | 74.42% | ||
oceanwhale | 0 | 1,475,053,427,843 | 75.76% | ||
crabbot | 0 | 544,509,877 | 100% | ||
profitvote | 0 | 1,043,731,673,487 | 78.18% | ||
mozer | 0 | 1,408,603,031 | 30% | ||
tahirozgen | 0 | 91,906,230,979 | 90% | ||
whalepromobot | 0 | 207,513,540,522 | 50% | ||
laissez-faire | 0 | 63,958,520 | 100% | ||
ayisigi | 0 | 280,427,817 | 100% | ||
steemst | 0 | 42,258,210,211 | 100% | ||
kabasakal | 0 | 11,242,928,576 | 30% | ||
maonx | 0 | 9,561,301,628 | 100% | ||
omeryetim | 0 | 98,442,808 | 30% | ||
hdu | 0 | 4,683,323,258 | 2% | ||
iskenderk | 0 | 17,808,310,618 | 100% | ||
yusufyusuf | 0 | 60,456,392,284 | 100% | ||
cocukgelisimi | 0 | 6,097,907,314 | 100% | ||
eternalsuccess | 0 | 723,104,552 | 1% | ||
denizcakmak | 0 | 63,182,227,022 | 100% | ||
elektroyazilim | 0 | 53,391,786,284 | 100% | ||
huseyinunozkan16 | 0 | 18,844,961,863 | 100% | ||
iktisat | 0 | 1,398,194,285 | 100% | ||
onecent | 0 | 3,248,433,547 | 14% | ||
mk-pal-token | 0 | 1,091,532,160 | 56.12% | ||
mk-stem-token | 0 | 50,943,982 | 2.6% | ||
mk-marlians-tkn | 0 | 2,048,633,780 | 76.7% | ||
maxuvv | 0 | 986,080,018 | 5% | ||
maxuva | 0 | 6,535,835,107 | 10% | ||
maxuvb | 0 | 6,435,885,389 | 10% | ||
maxuvc | 0 | 3,809,929,046 | 5% | ||
maxuvd | 0 | 3,810,805,046 | 5% | ||
maxuve | 0 | 8,074,354,323 | 10% |
You got a 33.33% upvote from @bid4joy courtesy of @elektroyazilim!
author | bid4joy |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190822t021606057z |
category | palnet |
json_metadata | {"app":"postpromoter/2.1.1"} |
created | 2019-08-22 02:16:06 |
last_update | 2019-08-22 02:16:06 |
depth | 1 |
children | 0 |
last_payout | 2019-08-29 02:16:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 67 |
author_reputation | 11,746,524,585,557 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,806,912 |
net_rshares | 0 |
You got a 65.82% upvote from @brupvoter courtesy of @elektroyazilim!
author | brupvoter |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190822t030113678z |
category | palnet |
json_metadata | {"app":"postpromoter/2.1.1"} |
created | 2019-08-22 03:01:12 |
last_update | 2019-08-22 03:01:12 |
depth | 1 |
children | 0 |
last_payout | 2019-08-29 03:01:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 69 |
author_reputation | 13,657,314,846,422 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,807,927 |
net_rshares | 0 |
Thanks for using @edensgarden!
author | edensgarden |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190823t224246397z |
category | palnet |
json_metadata | {"app":"postpromoter/2.1.1"} |
created | 2019-08-23 22:42:45 |
last_update | 2019-08-23 22:42:45 |
depth | 1 |
children | 0 |
last_payout | 2019-08-30 22:42:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 31 |
author_reputation | -100,797,867,719 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,880,243 |
net_rshares | 0 |
You got a 25.00% upvote from @joeparys! Thank you for your support of our services. To continue your support, please follow and delegate Steem power to @joeparys for daily steem and steem dollar payouts!
author | joeparys |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190822t082958103z |
category | palnet |
json_metadata | {"app":"postpromoter/2.1.1"} |
created | 2019-08-22 08:29:57 |
last_update | 2019-08-22 08:29:57 |
depth | 1 |
children | 0 |
last_payout | 2019-08-29 08:29:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 204 |
author_reputation | 308,150,391,439,389 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,816,530 |
net_rshares | 0 |
You got a 92.80% upvote from @luckyvotes courtesy of @elektroyazilim!
author | luckyvotes |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190824t023632861z |
category | palnet |
json_metadata | {"app":"postpromoter/2.1.2"} |
created | 2019-08-24 02:36:33 |
last_update | 2019-08-24 02:36:33 |
depth | 1 |
children | 0 |
last_payout | 2019-08-31 02:36:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 70 |
author_reputation | 29,364,484,293 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,884,702 |
net_rshares | 0 |
You got a 86.44% upvote from @minnowvotes courtesy of @elektroyazilim!
author | minnowvotes |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190822t043213436z |
category | palnet |
json_metadata | {"app":"postpromoter/2.1.1"} |
created | 2019-08-22 04:32:12 |
last_update | 2019-08-22 04:32:12 |
depth | 1 |
children | 0 |
last_payout | 2019-08-29 04:32:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 71 |
author_reputation | -125,291,280,752 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,809,607 |
net_rshares | 0 |
You got a 33.33% upvote from @redlambo courtesy of @elektroyazilim! Make sure to use tag #redlambo to be considered for the curation post!
author | redlambo |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190824t104438555z |
category | palnet |
json_metadata | {"app":"postpromoter/1.9.2"} |
created | 2019-08-24 10:44:39 |
last_update | 2019-08-24 10:44:39 |
depth | 1 |
children | 0 |
last_payout | 2019-08-31 10:44:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 139 |
author_reputation | 123,143,757,359 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,894,679 |
net_rshares | 0 |
You got a 83.17% upvote from @spydo courtesy of @elektroyazilim! We offer 100% Payout and Curation. Thank you.
author | spydo |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190821t002954211z |
category | palnet |
json_metadata | {"app":"postpromoter/2.1.1"} |
created | 2019-08-21 00:29:54 |
last_update | 2019-08-21 00:29:54 |
depth | 1 |
children | 0 |
last_payout | 2019-08-28 00:29:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 111 |
author_reputation | 5,236,724,209,210 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,765,781 |
net_rshares | 0 |
Congratulations @elektroyazilim! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://steemitimages.com/60x70/http://steemitboard.com/@elektroyazilim/voted.png?201908190931"></td><td>You received more than 10000 upvotes. Your next target is to reach 15000 upvotes.</td></tr> </table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@elektroyazilim) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=elektroyazilim)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> > You can upvote this notification to help all Steem users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
author | steemitboard |
---|---|
permlink | steemitboard-notify-elektroyazilim-20190819t123617000z |
category | palnet |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-08-19 12:36:18 |
last_update | 2019-08-19 12:36:18 |
depth | 1 |
children | 0 |
last_payout | 2019-08-26 12:36:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 854 |
author_reputation | 38,975,615,169,260 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,701,985 |
net_rshares | 0 |
The force is with you! You got a 23.75% upvote from @steemyoda courtesy of @elektroyazilim! http://ultraimg.com/images/2018/02/27/n8qb.gif
author | steemyoda |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190823t145133579z |
category | palnet |
json_metadata | {"app":"postpromoter/2.0.0"} |
created | 2019-08-23 14:51:33 |
last_update | 2019-08-23 14:51:33 |
depth | 1 |
children | 0 |
last_payout | 2019-08-30 14:51:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 140 |
author_reputation | -1,181,563,121,002 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,866,069 |
net_rshares | 0 |
You got a 50.00% upvote from @whalepromobot courtesy of @elektroyazilim!
author | whalepromobot |
---|---|
permlink | re-elektroyazilim-kuemeler-sets-1-python-dersleri-tutorials-20190822t001908212z |
category | palnet |
json_metadata | {"app":"postpromoter/2.0.0"} |
created | 2019-08-22 00:19:15 |
last_update | 2019-08-22 00:19:15 |
depth | 1 |
children | 0 |
last_payout | 2019-08-29 00:19:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 73 |
author_reputation | -231,775,391,844 |
root_title | "Kümeler (Sets) #1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,804,082 |
net_rshares | 0 |