create account

any() Fonksiyonu - Python Dersleri (Tutorials) by elektroyazilim

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

Merhabalar

Python programlama derslerinin bu bölümünde any()_ fonksiyonundan bahsedeceğiz.

_any()_ fonksiyonu, _all()_ fonksiyonunun tersidir.

> _any()_ fonksiyonunda, dizisel verilen tipin içerisindeki elemanların hepsi _True_ise True döndürürken bir tanesi _False_ olsa False döndürüyordu.

_any()_ fonksiyonunda ise herhangi bir değer _True_ ise sonuç True iken, hepsi _False_ olduğu durumda _False_ değer döndürmektedir.

Şimdi _any()_ fonksiyonunun çalışma mantığını anladığımıza göre kendimiz yazmaya çalışalım :

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

_herhangi()_ isminde bir fonksiyon tanımladık ve bu fonksiyon bir liste almaktadır. Fonksiyon bloğu içerisinde liste elemanlarını gezen bir for döngüsü bulunmaktadır.

_for()_ döngüsü içerisinde ise her bir _item_ ın True olup olmadığını sorguladığı bir if yapısı bulunmaktadır. Liste elemanlarından herhangi birinin True olması durumunda program if yapısına girecek ve sonucu True olarak döndürecektir.

Diğer durumda yani hiç True yoksa da False döndürecektir.

Şimdi uygulamasını yapalım :

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

_herhangi()_ fonksiyonuna tüm değerleri True ancak bir değeri False olan bir liste verdiğimizde sonucu True döndürdü. İkinci seferde tüm değerlerin False olduğu bir liste verdiğimizde ise sonucu True döndürdü.

Gerçek _any()_ fonksiyonunun kullanımını görelim :

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

_any()_ fonksiyonunun kullanımı da bu şekilde.

_all()_ ve _any()_ fonksiyonlarını kullanarak bir liste içerisindeki tüm True veya False değerlerini alabiliriz. Ön tanımlı fonksiyonlardan olduğu için de bizim tanımlamamıza gerek yoktur.


Ş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
permlinkany-fonksiyonu-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/DQmYrbw39xvk77mc5jMYF1C7aqE6P8mA6UqgSfMGCN6K3Vm/image.png","https://cdn.steemitimages.com/DQmckNkCtEP84HXEHdJqWKCziQLWaRtWJWt8tjACJpNoAuv/image.png","https://cdn.steemitimages.com/DQmQWp6ZU2tEMS8V6goi5ZksthiQtRSpDVqEwwTjESo6wCp/image.png","https://cdn.steemitimages.com/DQmYZw2bhUomeivJwQ8CiLaTzXTbJPLd1PsSGdcoEE1DfKP/yesilayrca.png"],"app":"marlians/0.1","format":"markdown"}
created2019-08-15 06:37:48
last_update2019-08-15 06:37:48
depth0
children12
last_payout2019-08-22 06:37:48
cashout_time1969-12-31 23:59:59
total_payout_value10.572 HBD
curator_payout_value3.339 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,284
author_reputation73,919,354,200,140
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,547,439
net_rshares41,537,218,863,329
author_curate_reward""
vote details (63)
@bid4joy ·
re-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190818t045803462z
You got a 33.33% upvote from @bid4joy courtesy of @elektroyazilim!
properties (22)
authorbid4joy
permlinkre-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190818t045803462z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-18 04:58:03
last_update2019-08-18 04:58:03
depth1
children0
last_payout2019-08-25 04:58: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_length67
author_reputation11,746,524,585,557
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,653,782
net_rshares0
@joeparys ·
re-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190817t155234940z
You got a 21.51% 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-any-fonksiyonu-python-dersleri-tutorials-20190817t155234940z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-17 15:52:36
last_update2019-08-17 15:52:36
depth1
children0
last_payout2019-08-24 15:52: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_length204
author_reputation308,141,868,155,707
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,636,213
net_rshares0
@luckyvotes ·
re-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190820t110203929z
You got a 92.79% upvote from @luckyvotes courtesy of @elektroyazilim!
properties (22)
authorluckyvotes
permlinkre-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190820t110203929z
categorypalnet
json_metadata{"app":"postpromoter/2.1.2"}
created2019-08-20 11:02:03
last_update2019-08-20 11:02:03
depth1
children0
last_payout2019-08-27 11:02: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_length70
author_reputation29,364,484,293
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,739,072
net_rshares0
@minnowvotes ·
re-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190818t204835168z
You got a 94.04% upvote from @minnowvotes courtesy of @elektroyazilim!
properties (22)
authorminnowvotes
permlinkre-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190818t204835168z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-18 20:48:36
last_update2019-08-18 20:48:36
depth1
children0
last_payout2019-08-25 20:48: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_length71
author_reputation-125,291,280,752
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,678,239
net_rshares0
@redlambo ·
re-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190819t180945523z
You got a 22.22% upvote from @redlambo courtesy of @elektroyazilim! Make sure to use tag #redlambo to be considered for the curation post!
properties (22)
authorredlambo
permlinkre-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190819t180945523z
categorypalnet
json_metadata{"app":"postpromoter/1.9.2"}
created2019-08-19 18:09:45
last_update2019-08-19 18:09:45
depth1
children0
last_payout2019-08-26 18:09:45
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"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,713,103
net_rshares0
@steemyoda ·
re-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190819t081422633z
The force is with you! You got a 28.50% upvote from @steemyoda courtesy of @elektroyazilim!

http://ultraimg.com/images/2018/02/27/n8qb.gif
properties (22)
authorsteemyoda
permlinkre-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190819t081422633z
categorypalnet
json_metadata{"app":"postpromoter/2.0.0"}
created2019-08-19 08:14:27
last_update2019-08-19 08:14:27
depth1
children0
last_payout2019-08-26 08:14: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_length140
author_reputation-1,181,563,121,002
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,693,988
net_rshares0
@tahirozgen ·
Bir an için başlığı amy() fonksiyonu diye okudum. amy diye okuyunca aklıma Amy Winehouse geldi. O anda kendisinin öldüğünü düşünerek çok ama çok üzüldüm. Durduk yere niye üzüyorsun...  sniff snifff. ;

https://www.youtube.com/watch?v=b-I2s5zRbHg
properties (22)
authortahirozgen
permlinkre-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190815t112207197z
categorypalnet
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["palnet"],"users":[],"links":[],"image":[]}
created2019-08-15 11:22:09
last_update2019-08-15 11:22:09
depth1
children4
last_payout2019-08-22 11:22:09
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_length245
author_reputation140,043,215,207,927
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,555,145
net_rshares0
@elektroyazilim ·
$1.51
aaa canım hocam ya :S bu dersin bu konuya bağlanacağı hiç aklıma gelmezdi. Kusura bakmayın sizi üzdüm :(

Teşekkür ederim değerli yorum ve desteğiniz için.
👍  ,
properties (23)
authorelektroyazilim
permlinkpw9zty
categorypalnet
json_metadata{"tags":["palnet"],"app":"steemit/0.1"}
created2019-08-15 11:27:39
last_update2019-08-15 11:27:39
depth2
children3
last_payout2019-08-22 11:27:39
cashout_time1969-12-31 23:59:59
total_payout_value1.132 HBD
curator_payout_value0.377 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length155
author_reputation73,919,354,200,140
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,555,300
net_rshares4,453,792,468,765
author_curate_reward""
vote details (2)
@minnowvotes ·
re-elektroyazilim-pw9zty-20190820t025255160z
You got a 20.83% upvote from @minnowvotes courtesy of @elektroyazilim!
properties (22)
authorminnowvotes
permlinkre-elektroyazilim-pw9zty-20190820t025255160z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-20 02:52:54
last_update2019-08-20 02:52:54
depth3
children0
last_payout2019-08-27 02:52: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"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,726,312
net_rshares0
@tahirozgen ·
$4.47
Her türlü konuya bağlayıp, her türlü üzülebilirim; senin aslında bir suçun yok. Sen elektroyazilim değil de elektrogitar olsaydın, belki seni suçlamanın bir anlamı olurdu. 😜
👍  , ,
properties (23)
authortahirozgen
permlinkre-elektroyazilim-pw9zty-20190815t121043071z
categorypalnet
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["palnet"],"users":[],"links":[],"image":[]}
created2019-08-15 12:10:45
last_update2019-08-15 12:10:45
depth3
children1
last_payout2019-08-22 12:10:45
cashout_time1969-12-31 23:59:59
total_payout_value3.356 HBD
curator_payout_value1.118 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length173
author_reputation140,043,215,207,927
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,556,509
net_rshares13,210,846,450,841
author_curate_reward""
vote details (3)
@whalepromobot ·
re-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190818t025349165z
You got a 50.00% upvote from @whalepromobot courtesy of @elektroyazilim!
properties (22)
authorwhalepromobot
permlinkre-elektroyazilim-any-fonksiyonu-python-dersleri-tutorials-20190818t025349165z
categorypalnet
json_metadata{"app":"postpromoter/2.0.0"}
created2019-08-18 02:53:54
last_update2019-08-18 02:53:54
depth1
children0
last_payout2019-08-25 02:53: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_length73
author_reputation-231,775,391,844
root_title"any() Fonksiyonu - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,651,229
net_rshares0