create account

enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials) by elektroyazilim

View this thread on: hive.blogpeakd.comecency.com
· @elektroyazilim ·
$12.15
enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)
![yeni.jpg](https://cdn.steemitimages.com/DQmVqEHkajCZyuMfc1Nn7AfRj9QwYTddNmLcySkpi48PD1S/yeni.jpg) 

Merhabalar

Python programlama derslerinin bu bölümünde _enumerate()_ fonksiyonuna başlayacağız.

_enumerate_  kelimesi İngilizce "numaralanırmak" kelimesinin karşılığıdır. Bu fonksiyonun görevi de ismi ile oldukça benzerlik göstermektedir.

_enumerate_ fonksiyonu, nesneleri numaralandırmak için kullanılır.  Daha açık ifade etmek gerekirse bir listedeki hem elemanı hem de indeksi getirir.

Normal şartlarda biz bir liste içerisindeki hem eleman bilgisini hem de indeks bilgisini almak isteseydik aşağıdaki gibi bir yapı uygulamamız gerekirdi :

![](https://cdn.steemitimages.com/DQmU9t5BrNJzF6WUpArgdFoZbuUBDi7QghTgcVi9rvUBUGm/image.png)

Ancak bu işi _enumerate()_ fonksiyonuyla şöyle yaparız. Öncelikle şunu belirtelim. _enumerate()_ fonksiyonu kullanıldığında _enumerate_ tipinde bir değişken döndürür :

![](https://cdn.steemitimages.com/DQmXgqftgGHshq5mGhXDoyu3BeZ2ZmEvDgMLfPBSuDXW5Yx/image.png)

İçeriğini görmek için _list()_ fonksiyonunu kullanabileceğimiz gibi aşağıdaki tekniği de kullanabiliriz:

![](https://cdn.steemitimages.com/DQmckVQ1PMZWFd1bnN1c87mSUMcYtbYx3xWECjz6HWRi8Q8/image.png)

Görüldüğü gibi yukarıdaki çok satırlı uygulamanın yaptığını _enumerate()_ fonksiyonunu kullanarak tek hamlede yaptık. 

![](https://cdn.steemitimages.com/DQmVuBUQWnFQoc82SqDinsJJWCWq4csQiaZbES9wsxkfwNn/image.png)

_enumerate()_ fonksiyonu , uygulandığında ikili demet şeklide bir yapı ortaya çıkarıyor. Böylece bir listenin hem indeksine hem de kendisine erişim sağlamış oluyoruz.

Ş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

<hr><center><sub>Posted via <a href="https://www.marlians.com/">Marlians.com</a></sub></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorelektroyazilim
permlinkenumerate-fonksiyonu-1-python-dersleri-tutorials
categorypalnet
json_metadata{"tags":["palnet","zzan","stem","tr","programming","python","marlians"],"image":["https://cdn.steemitimages.com/DQmVqEHkajCZyuMfc1Nn7AfRj9QwYTddNmLcySkpi48PD1S/yeni.jpg","https://cdn.steemitimages.com/DQmU9t5BrNJzF6WUpArgdFoZbuUBDi7QghTgcVi9rvUBUGm/image.png","https://cdn.steemitimages.com/DQmXgqftgGHshq5mGhXDoyu3BeZ2ZmEvDgMLfPBSuDXW5Yx/image.png","https://cdn.steemitimages.com/DQmckVQ1PMZWFd1bnN1c87mSUMcYtbYx3xWECjz6HWRi8Q8/image.png","https://cdn.steemitimages.com/DQmVuBUQWnFQoc82SqDinsJJWCWq4csQiaZbES9wsxkfwNn/image.png","https://cdn.steemitimages.com/DQmYZw2bhUomeivJwQ8CiLaTzXTbJPLd1PsSGdcoEE1DfKP/yesilayrca.png"],"app":"marlians/0.1","format":"markdown"}
created2019-08-13 18:09:36
last_update2019-08-13 18:09:36
depth0
children7
last_payout2019-08-20 18:09:36
cashout_time1969-12-31 23:59:59
total_payout_value9.231 HBD
curator_payout_value2.921 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,970
author_reputation73,919,354,200,140
root_title"enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,486,947
net_rshares36,291,452,101,559
author_curate_reward""
vote details (44)
@brupvoter ·
re-elektroyazilim-enumerate-fonksiyonu-1-python-dersleri-tutorials-20190817t005847021z
You got a 67.22% upvote from @brupvoter courtesy of @elektroyazilim!
properties (22)
authorbrupvoter
permlinkre-elektroyazilim-enumerate-fonksiyonu-1-python-dersleri-tutorials-20190817t005847021z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-17 00:58:48
last_update2019-08-17 00:58:48
depth1
children0
last_payout2019-08-24 00:58:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation13,657,314,846,422
root_title"enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,615,679
net_rshares0
@iktisat ·
Sizin bütün içeriklerinizi birkaç gün boyunca okumak gibi bir fikrim var. Python deyince akla gelir oldunuz. Aynı konudan devam etmeniz çok mantıklı bir yön olmuş. İyi çalışmalar dilerim @elektroyazilim
properties (22)
authoriktisat
permlinkpw7bgp
categorypalnet
json_metadata{"tags":["palnet"],"users":["elektroyazilim"],"app":"steemit/0.1"}
created2019-08-14 00:46:03
last_update2019-08-14 00:46:03
depth1
children1
last_payout2019-08-21 00:46:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length202
author_reputation499,450,701,404
root_title"enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,496,994
net_rshares0
@elektroyazilim ·
> Aynı konudan devam etmeniz çok mantıklı bir yön olmuş.

İlgilendiğim bir konu olsun istedim.  Çok teşekkür ederim @iktisat desteğiniz ve yorumunuz için.  Yorumunuz gülümsetti :)
properties (22)
authorelektroyazilim
permlinkpw846z
categorypalnet
json_metadata{"tags":["palnet"],"users":["iktisat"],"app":"steemit/0.1"}
created2019-08-14 11:06:33
last_update2019-08-14 11:06:33
depth2
children0
last_payout2019-08-21 11:06:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length179
author_reputation73,919,354,200,140
root_title"enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,514,481
net_rshares0
@luckyvotes ·
re-elektroyazilim-enumerate-fonksiyonu-1-python-dersleri-tutorials-20190819t025036852z
You got a 93.98% upvote from @luckyvotes courtesy of @elektroyazilim!
properties (22)
authorluckyvotes
permlinkre-elektroyazilim-enumerate-fonksiyonu-1-python-dersleri-tutorials-20190819t025036852z
categorypalnet
json_metadata{"app":"postpromoter/2.1.2"}
created2019-08-19 02:50:36
last_update2019-08-19 02:50:36
depth1
children0
last_payout2019-08-26 02:50:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length70
author_reputation29,364,484,293
root_title"enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,686,097
net_rshares0
@minnowvotes ·
re-elektroyazilim-enumerate-fonksiyonu-1-python-dersleri-tutorials-20190817t120633996z
You got a 99.46% upvote from @minnowvotes courtesy of @elektroyazilim!
properties (22)
authorminnowvotes
permlinkre-elektroyazilim-enumerate-fonksiyonu-1-python-dersleri-tutorials-20190817t120633996z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-17 12:06:33
last_update2019-08-17 12:06:33
depth1
children0
last_payout2019-08-24 12:06:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length71
author_reputation-125,291,280,752
root_title"enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,629,797
net_rshares0
@steemitboard ·
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/votes.png?201908140325"></td><td>You distributed more than 1250 upvotes. Your next target is to reach 1500 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>


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)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-elektroyazilim-20190814t040805000z
categorypalnet
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-08-14 04:08:03
last_update2019-08-14 04:08:03
depth1
children0
last_payout2019-08-21 04:08:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length904
author_reputation38,975,615,169,260
root_title"enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,501,513
net_rshares0
@votecenter · (edited)
re-elektroyazilim-enumerate-fonksiyonu-1-python-dersleri-tutorials-20190817t092840033z
This post has received a 18.41% upvote from @votecenter
properties (22)
authorvotecenter
permlinkre-elektroyazilim-enumerate-fonksiyonu-1-python-dersleri-tutorials-20190817t092840033z
categorypalnet
json_metadata{"app":"steemit/0.1","tags":["palnet"],"users":["votecenter"]}
created2019-08-17 09:28:42
last_update2019-08-20 12:17:42
depth1
children0
last_payout2019-08-24 09:28:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length55
author_reputation-458,729,686,019
root_title"enumerate() fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,626,299
net_rshares0