![kapak.jpg](https://cdn.steemitimages.com/DQmThdi5LSucjta2n6jp6kkyrJ1AgEhC3uAVRVVZaMzowQW/kapak.jpg) Merhabalar. Python programlama derslerinin bu bölümünde yeni bir veri tipi olan Dictionary veri tipine giriş yapacağız. Diğer programlama dillerindeki veri tiplerini düşündüğümüzde biraz daha farklı bir yere sahip olduğunu söyleyebiliriz. Python derslerinde bugüne kadar gördüğümüz veri tiplerinden string , tuple veya listelere benzememektedir. Mesela liste veri tipinde, veri tipini oluşturan her bir elemanın kendine ait bir değeri varken, dictionary veri tipinde bu anahtar- değer ikilisi şeklindedir. Anahtar- değer yapısı sayesinde aslında gerçek hayattaki sözlüklere de oldukça benzemektedir. Mesela bir ingilizce bir sözlüğü elimize alalım. Desk kelimesi böyle bir yapıda anahtar kelime ise Türkçe karşılığı olan Masa kelimesini bu anahtarın değeridir. Şimdi bir sözlük nasıl oluşturulur, uygulama üzerinde görelim : ![](https://cdn.steemitimages.com/DQmQetevWesere4sYW5MRJjJT75hW4Ny5LZK7iLrJeraaxr/image.png) Görüldüğü gibi bir sözlük oluştururken sözlük elemanları anahtar:değer çifti şeklinde verilmektedir. Diğer veri türlerinden farklı olarak süslü parantez { } kullanılıp çiftler birbirinden virgül ile ayrılmaktadır. Şimdi oluşturduğumuz bu nesnenin tipini type() fonksiyonu kullanarak sorgulayalım : ![](https://cdn.steemitimages.com/DQmfSXba8mKeoEGjE2GrTwAmMFsG95sdGop3RiuPaxvynRi/image.png) Sonucu "dict" olarak aldık. Görüldüğü gibi oluşturduğumuz sayilarDict nesnesi dict yani dictionary veri tipinde bir değişkendir. Yukarıdaki örnekte 4 elemanlı bir sözlük örneği vermiştik. Şimdi de boş bir sözlük nasıl oluşturulur ona bakalım : ![](https://cdn.steemitimages.com/DQmZjwopT2ad2R1B3xp3STPMAUCfoxZbyPFENQ3rX9Gn84Z/image.png) Boş bir dictionary oluşturmak için atama operatorunden sonra iki adet süslü parantez kullanmamız yeterli { }. Tabi bunun başka yolları da var yani metot kullanarak da boş bir dictionary oluşturabiliriz : ![](https://cdn.steemitimages.com/DQmbDPpfqEJpeC1g4F92zcTCZGk2E7wEiJvSLTxHwvmtKpR/image.png) Örneğimizde dict() metodunuz kullanarak sozluk2 adında boş bir dictionary oluşturduk. Sözlük oluşturma ya da tanımlama işlemleri bu şekildedir. Şimdilik bu kadar. Umarım faydalı bir çalışma olmuştur. Teşekkürler. ![yesilayrca.png](https://cdn.steemitimages.com/DQmYZw2bhUomeivJwQ8CiLaTzXTbJPLd1PsSGdcoEE1DfKP/yesilayrca.png) Kaynak belirtilmeyen görseller bana aittir. The pictures without source in the post is belong to me
post_id | 76,466,819 |
---|---|
author | elektroyazilim |
permlink | dictionary-veri-tipi-1-python-dersleri-tutorials |
category | blog |
json_metadata | {"tags":["blog","programming","python","tutorials"],"image":["https:\/\/cdn.steemitimages.com\/DQmThdi5LSucjta2n6jp6kkyrJ1AgEhC3uAVRVVZaMzowQW\/kapak.jpg","https:\/\/cdn.steemitimages.com\/DQmQetevWesere4sYW5MRJjJT75hW4Ny5LZK7iLrJeraaxr\/image.png","https:\/\/cdn.steemitimages.com\/DQmfSXba8mKeoEGjE2GrTwAmMFsG95sdGop3RiuPaxvynRi\/image.png","https:\/\/cdn.steemitimages.com\/DQmZjwopT2ad2R1B3xp3STPMAUCfoxZbyPFENQ3rX9Gn84Z\/image.png","https:\/\/cdn.steemitimages.com\/DQmbDPpfqEJpeC1g4F92zcTCZGk2E7wEiJvSLTxHwvmtKpR\/image.png","https:\/\/cdn.steemitimages.com\/DQmYZw2bhUomeivJwQ8CiLaTzXTbJPLd1PsSGdcoEE1DfKP\/yesilayrca.png"],"app":"steemit\/0.1","format":"markdown"} |
created | 2019-06-16 06:23:39 |
last_update | 2019-06-16 06:23:39 |
depth | 0 |
children | 2 |
net_rshares | 19,801,676,778,340 |
last_payout | 2019-06-23 06:23:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 8.712 SBD |
curator_payout_value | 2.769 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 2,491 |
author_reputation | 73,941,607,658,612 |
root_title | "Dictionary Veri Tipi # 1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ghasemkiani | 0 | 71,081,918,803 | 17.85% | ||
steemitboard | 0 | 30,771,820,291 | 2% | ||
koinbot | 0 | 1,157,590,762,967 | 100% | ||
steinhammer | 0 | 6,666,374,887 | 100% | ||
steemfunding | 0 | 2,234,641,338,681 | 100% | ||
steemlike | 0 | 153,651,180,766 | 100% | ||
steemlite | 0 | 206,749,399,924 | 82.97% | ||
beautifulwoman | 0 | 12,192,832,477 | 100% | ||
mmmmkkkk311 | 0 | 748,196,450,955 | 18.25% | ||
baycan | 0 | 3,146,371,989 | 50% | ||
neokuduk | 0 | 5,066,238,403 | 100% | ||
literaturk | 0 | 339,852,363 | 100% | ||
anayakhan | 0 | 3,845,079,476 | 8.92% | ||
minnowvotes | 0 | 15,002,720,936,630 | 70.85% | ||
sudefteri | 0 | 7,876,749,488 | 100% | ||
rasit | 0 | 394,054,805 | 100% | ||
maveraunnehr | 0 | 392,978,929 | 100% | ||
danai | 0 | 6,083,276,809 | 100% | ||
informator | 0 | 1,407,529,927 | 9.12% | ||
tahirozgen | 0 | 56,404,655,755 | 90% | ||
laissez-faire | 0 | 56,579,849 | 100% | ||
meowcliver | 0 | 86,994,602 | 50% | ||
steemst | 0 | 57,011,596,666 | 100% | ||
maonx | 0 | 7,432,311,613 | 100% | ||
etasarim | 0 | 12,347,346,868 | 100% | ||
hozn4ukhlytriwc | 0 | 151,866,558 | 15% | ||
peterpetrelli | 0 | 547,791,590 | 100% | ||
roportaj | 0 | 549,598,858 | 100% | ||
bos1234 | 0 | 549,235,676 | 100% | ||
hots | 0 | 549,235,676 | 100% | ||
gotmu | 0 | 549,235,676 | 100% | ||
dasa | 0 | 549,235,676 | 100% | ||
nextcol | 0 | 549,235,676 | 100% | ||
sinanbayrak | 0 | 549,235,676 | 100% | ||
opo9 | 0 | 549,235,676 | 100% | ||
ikiliseyir | 0 | 549,140,046 | 100% | ||
indirim | 0 | 549,136,454 | 100% | ||
itiraf | 0 | 549,136,454 | 100% | ||
kuzeyli | 0 | 548,781,115 | 100% | ||
guneyli | 0 | 548,781,115 | 100% | ||
sbtr | 0 | 550,466,391 | 100% | ||
ikiturk | 0 | 548,679,113 | 100% | ||
yazilim | 0 | 548,672,640 | 100% | ||
etkinlik | 0 | 548,679,113 | 100% | ||
steemitli | 0 | 548,672,640 | 100% | ||
discordtr | 0 | 548,679,113 | 100% | ||
tartisma | 0 | 548,672,640 | 100% | ||
beyazli | 0 | 548,679,113 | 100% | ||
kirmizili | 0 | 548,679,113 | 100% | ||
yesilli | 0 | 548,672,640 | 100% | ||
dergi | 0 | 548,679,113 | 100% | ||
dogulu | 0 | 548,679,113 | 100% | ||
batili | 0 | 548,679,113 | 100% | ||
siyahli | 0 | 548,672,640 | 100% |
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/posts.png?201906160747"></td><td>You published more than 60 posts. Your next target is to reach 70 posts.</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> To support your work, I also upvoted your post! > You can upvote this notification to help all Steem users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
post_id | 76,470,851 |
---|---|
author | steemitboard |
permlink | steemitboard-notify-elektroyazilim-20190616t080447000z |
category | blog |
json_metadata | {"image":["https:\/\/steemitboard.com\/img\/notify.png"]} |
created | 2019-06-16 08:04:45 |
last_update | 2019-06-16 08:04:45 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2019-06-23 08:04:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 894 |
author_reputation | 38,705,954,145,809 |
root_title | "Dictionary Veri Tipi # 1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
You got a 70.85% upvote from @minnowvotes courtesy of @elektroyazilim!
post_id | 76,734,176 |
---|---|
author | minnowvotes |
permlink | re-elektroyazilim-dictionary-veri-tipi-1-python-dersleri-tutorials-20190620t192304419z |
category | blog |
json_metadata | {"app":"postpromoter\/2.1.1"} |
created | 2019-06-20 19:23:03 |
last_update | 2019-06-20 19:23:03 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2019-06-27 19:23:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 71 |
author_reputation | -300,453,853,020 |
root_title | "Dictionary Veri Tipi # 1 - Python Dersleri (Tutorials)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |