create account

map Fonksiyonu # 1 - Python Dersleri (Tutorials) by elektroyazilim

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

Merhabalar

Python programlama derslerinin bu bölümünde yeni bir konuya başlayacağız.  Python'un kendi fonksiyonları ya da bilinen ismiyle söylemek gerekirse gömülü fonksiyonlarından biri olan _map()_ fonksiyonunu göreceğiz.

## map() fonksiyonu

_map()_ fonksiyonu, parametre olarak aldığı fonksiyonu dizisel yapının her bir elemanı üzerinde uygular ve sonuçların her birini bir map objesi olarak döndürür.

Tanımı çok anlaşılır olmadı ama uygulamasını görünce demek istediğim hemen anlaşılacaktır.

Genel yapısı aşağıdaki gibidir :

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

_map()_ fonksiyonunu kullanabilmek için ilk olarak bir fonksiyon tanımlayalım :

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

Şimdi de bu fonksiyon üzerinde uygulamasını görelim :

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

İlk parametre olarak _kareAl()_ fonksiyonumuzu ikinci parametre olarak da bir liste aldı. _map()_ fonksiyonunu çalıştırdığımızda _map_ tipinde bir nesne döndürdü.

Bu nesnenin içeriğini görebilmek için _list()_ metodunu kullanarak listeye çevirelim ve print() fonksiyonu ile ekrana yazdıralım :

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

Görüldüğü gibi liste elemanlarının her birini üzerinde _kareAl()_ fonksiyonu çalıştırılmış. Böylelikle tüm liste elemanlarının karesi alınmış.

Yani _map()_ fonksiyonu, bu liste elemanlarının her birini sırasıyla _kareAl()_ fonksiyonuna parametre olarak gönderiyor. Fonksiyondan elde edilen sonuçları da _map_ tipinde bir objede tutuyor.

_map()_ fonksiyonunun bunun dışımda _lambda_ anahtar kelimesi ile kullanımını da görebilirsiniz. _kareAl()_ fonksiyonu gibi tek satırlık fonksiyonlar için aşağıdaki gibi bir uygulama da doğrudur :

![](https://cdn.steemitimages.com/DQmV4BiT8mvhoDdAEsDdDu7PiqunjpputiWE4Uu9M8AYn6j/image.png)
 
Bu kullanımında birinci parametre olarak fonksiyonun olduğu yerde lambda anahtar kelimesi kullanılarak fonksiyonun tanımı yer almaktadır. İkinci parametre de liste olabileceği gibi demet veya herhangi dizisel bir yapı olabilir.

Ş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
permlinkmap-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/DQmTGRsvQDQ5xyR5wfM1AjujZCF1LcYQz8oRxUXxFyFBL8q/image.png","https://cdn.steemitimages.com/DQmY9mHsXRBD2FRscutaN4fLYMSnAFCHoSXw3DM433cnP7n/image.png","https://cdn.steemitimages.com/DQmT3jtTYYPMEjgCYxGZuBYFBrBfpMkKGXZpcMdfF1hE5d2/image.png","https://cdn.steemitimages.com/DQmRPvTjMyFKWM6LXn4NoGmn1y2XarK1oq91w6ncG8oG3RX/image.png","https://cdn.steemitimages.com/DQmV4BiT8mvhoDdAEsDdDu7PiqunjpputiWE4Uu9M8AYn6j/image.png","https://cdn.steemitimages.com/DQmYZw2bhUomeivJwQ8CiLaTzXTbJPLd1PsSGdcoEE1DfKP/yesilayrca.png"],"app":"marlians/0.1","format":"markdown"}
created2019-08-09 06:48:24
last_update2019-08-09 06:48:24
depth0
children16
last_payout2019-08-16 06:48:24
cashout_time1969-12-31 23:59:59
total_payout_value10.695 HBD
curator_payout_value3.378 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,687
author_reputation73,919,354,200,140
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,321,571
net_rshares42,260,693,978,988
author_curate_reward""
vote details (38)
@bid4joy ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t075649100z
You got a 33.33% upvote from @bid4joy courtesy of @elektroyazilim!
properties (22)
authorbid4joy
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t075649100z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-12 07:56:48
last_update2019-08-12 07:56:48
depth1
children0
last_payout2019-08-19 07:56: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_length67
author_reputation11,746,524,585,557
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,430,436
net_rshares0
@brupvoter ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190811t190650297z
You got a 67.53% upvote from @brupvoter courtesy of @elektroyazilim!
properties (22)
authorbrupvoter
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190811t190650297z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-11 19:06:51
last_update2019-08-11 19:06:51
depth1
children0
last_payout2019-08-18 19:06:51
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"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,413,180
net_rshares0
@chireerocks ·
@elektroyazilim, For sure actual **Application Structure** make sense more than a definition.

Posted using [Partiko Android](https://partiko.app/referral/chireerocks)
properties (22)
authorchireerocks
permlinkchireerocks-re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190809t105941269z
categorypalnet
json_metadata{"app":"partiko","client":"android"}
created2019-08-09 10:59:42
last_update2019-08-09 10:59:42
depth1
children4
last_payout2019-08-16 10:59: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_length167
author_reputation327,821,690,945,691
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,327,772
net_rshares0
@elektroyazilim · (edited)
Thanks, you are right. However these lessons are prepared for people  who never know about programming. So I give details. But for future i will change this structure.
properties (22)
authorelektroyazilim
permlinkpvyvzf
categorypalnet
json_metadata{"tags":["palnet"],"app":"steemit/0.1"}
created2019-08-09 11:30:51
last_update2019-08-09 11:44:42
depth2
children3
last_payout2019-08-16 11:30:51
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_length167
author_reputation73,919,354,200,140
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,328,547
net_rshares0
@chireerocks ·
Welcome and everything is important when we describe some subjects. Keep up the good work and keep doing the **Knowledge Transfer** work.

Posted using [Partiko Android](https://partiko.app/referral/chireerocks)
properties (22)
authorchireerocks
permlinkchireerocks-re-elektroyazilim-pvyvzf-20190809t124403496z
categorypalnet
json_metadata{"app":"partiko","client":"android"}
created2019-08-09 12:44:03
last_update2019-08-09 12:44:03
depth3
children2
last_payout2019-08-16 12:44: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_length211
author_reputation327,821,690,945,691
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,330,607
net_rshares0
@joeparys ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t114127253z
You got a 28.57% 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!
properties (22)
authorjoeparys
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t114127253z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-12 11:41:27
last_update2019-08-12 11:41:27
depth1
children0
last_payout2019-08-19 11:41:27
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_length204
author_reputation308,170,152,951,317
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,435,623
net_rshares0
@lovejuice ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t032836446z
This post has received a 33.33% upvote from @lovejuice thanks to @elektroyazilim. They love you, so does Aggroed. Please be sure to vote for Witnesses at https://steemit.com/~witnesses.
properties (22)
authorlovejuice
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t032836446z
categorypalnet
json_metadata{"app":"postpromoter/1.7.4"}
created2019-08-12 03:28:36
last_update2019-08-12 03:28:36
depth1
children0
last_payout2019-08-19 03:28: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_length185
author_reputation10,538,740,461,622
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,424,423
net_rshares0
@luckyvotes ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190814t145933105z
You got a 96.49% upvote from @luckyvotes courtesy of @elektroyazilim!
properties (22)
authorluckyvotes
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190814t145933105z
categorypalnet
json_metadata{"app":"postpromoter/2.1.2"}
created2019-08-14 14:59:33
last_update2019-08-14 14:59:33
depth1
children0
last_payout2019-08-21 14:59: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_length70
author_reputation29,364,484,293
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,521,615
net_rshares0
@minnowvotes ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t222954465z
You got a 91.98% upvote from @minnowvotes courtesy of @elektroyazilim!
properties (22)
authorminnowvotes
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t222954465z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-12 22:29:54
last_update2019-08-12 22:29:54
depth1
children0
last_payout2019-08-19 22:29:54
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"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,455,902
net_rshares0
@redlambo ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t105742113z
You got a 33.33% upvote from @redlambo courtesy of @elektroyazilim! Make sure to use tag #redlambo to be considered for the curation post!
properties (22)
authorredlambo
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t105742113z
categorypalnet
json_metadata{"app":"postpromoter/1.9.2"}
created2019-08-12 10:57:42
last_update2019-08-12 10:57:42
depth1
children0
last_payout2019-08-19 10:57: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_length139
author_reputation123,143,757,359
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,434,392
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/commented.png?201908091413"></td><td>You got more than 200 replies. Your next target is to reach 300 replies.</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)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-elektroyazilim-20190809t145722000z
categorypalnet
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-08-09 14:57:21
last_update2019-08-09 14:57:21
depth1
children0
last_payout2019-08-16 14:57:21
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_length849
author_reputation38,975,615,169,260
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,335,377
net_rshares0
@steemyoda ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t173233164z
The force is with you! You got a 35.62% upvote from @steemyoda courtesy of @elektroyazilim!

http://ultraimg.com/images/2018/02/27/n8qb.gif
properties (22)
authorsteemyoda
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t173233164z
categorypalnet
json_metadata{"app":"postpromoter/2.0.0"}
created2019-08-12 17:32:33
last_update2019-08-12 17:32:33
depth1
children0
last_payout2019-08-19 17:32: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_length140
author_reputation-1,181,563,121,002
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,447,536
net_rshares0
@whalecreator ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t050958618z
You got a 100.00% upvote from @whalecreator courtesy of @elektroyazilim! Delegate your Steem Power to earn 100% payouts.
properties (22)
authorwhalecreator
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t050958618z
categorypalnet
json_metadata{"app":"postpromoter/1.9.3"}
created2019-08-12 05:10:00
last_update2019-08-12 05:10:00
depth1
children0
last_payout2019-08-19 05:10:00
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_length121
author_reputation-582,393,550,059
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,426,675
net_rshares0
@whalepromobot ·
re-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t125102968z
You got a 50.00% upvote from @whalepromobot courtesy of @elektroyazilim!
properties (22)
authorwhalepromobot
permlinkre-elektroyazilim-map-fonksiyonu-1-python-dersleri-tutorials-20190812t125102968z
categorypalnet
json_metadata{"app":"postpromoter/2.0.0"}
created2019-08-12 12:51:03
last_update2019-08-12 12:51:03
depth1
children0
last_payout2019-08-19 12:51: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_length73
author_reputation-231,775,391,844
root_title"map Fonksiyonu # 1 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,437,706
net_rshares0