create account

abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials) by elektroyazilim

View this thread on: hive.blogpeakd.comecency.com
· @elektroyazilim ·
$14.57
abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)
![yeni.jpg](https://cdn.steemitimages.com/DQmVqEHkajCZyuMfc1Nn7AfRj9QwYTddNmLcySkpi48PD1S/yeni.jpg) 

Merhabalar

Python programlama derslerinin bu bölümünde sayılar üzerinde işlem yapan bazı fonksiyonlardan bahsedeceğiz.

Bu fonksiyonlardan ilki _abs()_ fonksiyonu.

## abs() fonksiyonu

_abs()_  fonksiyonu bir sayının mutlak değerini almak için kullanılır. 

Uygulamasını görelim:

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

Örneklerde görüldüğü gibi negatif olan sayıları pozitif, pozitif olanları da değişiklik yapmadan çıkarıyor. 

## round() fonksiyonu

_round()_ fonksiyonu, adından da anlaşılacağı üzere sayıları yuvarlamak için kullanılır. Yuvarlama mantığı gerçek hayattaki ile birebir aynı.

Örnek üzerinden açıklayım. 3 sayısını ele alalım. Eğer bize 3.6 verirlerse 4 sayısına yuvarlarız. 3.4 verirlerse de 3 sayısına yuvarlarız. 3.5 verirlerse de 4 e yuvarlarız.

Uygulamasını görelim :

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

_round()_ fonksiyonunun 2 parametre alan bir kullanımı da vardır. İkinci parametre ondalık sayılarda kaç digit üzerinde işlem yapmak istediğimizi belirtmek için kullanılır. 

Örneğin 

> 3.225 

sayısında ikinci parametre olarak 2 verdiğimizi düşünelim. Biz buradaki 2 sayısı ile ondalıklı sayımızın virgülden sonra 2 basamaklı bir sayı olmasını istediğimizi belirtiyoruz.

Böyle bir işlemin sonucu (3.225, 2), 3.23 olacaktır.

Örnekler üzerinde görelim :

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

## min() ve max() fonksiyonları

_min()_ ve _max()_ fonksiyonları isimlerinden de anlaşıldığı üzere parametre olarak aldıkları sayılar arasında minimum ve maximum değerleri bulmaya yarar.

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

Örneklerde görüldüğü gibi çoklu parametre alabilir ve aldığı sayılar arasından max ve min değerleri seçebilir.

Bunların dışında parametre olarak liste veya demet de alabilir :

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

Parametre olarak liste aldıklarında liste içerisindeki min ve max değerleri vermektedirler.

Ş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>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 15 others
properties (23)
authorelektroyazilim
permlinkabs-round-min-ve-max-fonksiyonlari-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/DQmdx5kiS7V7hFkK9BZp7raawZzmit7aQnC2uSkmYgoMs78/image.png","https://cdn.steemitimages.com/DQmf4EdHLYDkRVVM1PLRVnjoMMCAB1tJ2bHZ9oFKUzjsYvf/image.png","https://cdn.steemitimages.com/DQmPJRGjNkcvCWTJ2nbXJWDsEWcpMmgU5VJF1X1mKgosJ7N/image.png","https://cdn.steemitimages.com/DQmfMZrDCFxZ7kJmnznGWjQ9dPXVAyCzYHiZEETV6oKaWkF/image.png","https://cdn.steemitimages.com/DQmR5XNE8ecnfTg3pT26P9xPQ2UA25hFr7N8BNEkPRX2JpQ/image.png","https://cdn.steemitimages.com/DQmYZw2bhUomeivJwQ8CiLaTzXTbJPLd1PsSGdcoEE1DfKP/yesilayrca.png"],"app":"marlians/0.1","format":"markdown"}
created2019-08-16 06:29:27
last_update2019-08-16 06:29:27
depth0
children14
last_payout2019-08-23 06:29:27
cashout_time1969-12-31 23:59:59
total_payout_value11.072 HBD
curator_payout_value3.499 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,627
author_reputation73,919,354,200,140
root_title"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,586,435
net_rshares43,648,518,709,921
author_curate_reward""
vote details (79)
@bid4joy ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t045224417z
You got a 33.33% upvote from @bid4joy courtesy of @elektroyazilim!
properties (22)
authorbid4joy
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t045224417z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-19 04:52:24
last_update2019-08-19 04:52:24
depth1
children0
last_payout2019-08-26 04:52:24
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"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,688,968
net_rshares0
@brupvoter ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t045940796z
You got a 62.98% upvote from @brupvoter courtesy of @elektroyazilim!
properties (22)
authorbrupvoter
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t045940796z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-19 04:59:39
last_update2019-08-19 04:59:39
depth1
children0
last_payout2019-08-26 04:59:39
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"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,689,169
net_rshares0
@joeparys ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190818t034550473z
You got a 23.53% 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-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190818t034550473z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-18 03:45:51
last_update2019-08-18 03:45:51
depth1
children0
last_payout2019-08-25 03:45: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_length204
author_reputation308,170,152,951,317
root_title"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,652,400
net_rshares0
@luckyvotes ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190821t224831876z
You got a 93.03% upvote from @luckyvotes courtesy of @elektroyazilim!
properties (22)
authorluckyvotes
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190821t224831876z
categorypalnet
json_metadata{"app":"postpromoter/2.1.2"}
created2019-08-21 22:48:33
last_update2019-08-21 22:48:33
depth1
children0
last_payout2019-08-28 22:48: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"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,801,924
net_rshares0
@minnowvotes ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t081123893z
You got a 93.20% upvote from @minnowvotes courtesy of @elektroyazilim!
properties (22)
authorminnowvotes
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t081123893z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-19 08:11:24
last_update2019-08-19 08:11:24
depth1
children0
last_payout2019-08-26 08:11:24
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"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,693,866
net_rshares0
@redlambo ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190820t012203054z
You got a 28.57% upvote from @redlambo courtesy of @elektroyazilim! Make sure to use tag #redlambo to be considered for the curation post!
properties (22)
authorredlambo
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190820t012203054z
categorypalnet
json_metadata{"app":"postpromoter/1.9.2"}
created2019-08-20 01:22:03
last_update2019-08-20 01:22:03
depth1
children0
last_payout2019-08-27 01:22: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_length139
author_reputation123,143,757,359
root_title"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,724,487
net_rshares0
@steemyoda ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t124749293z
The force is with you! You got a 25.91% upvote from @steemyoda courtesy of @elektroyazilim!

http://ultraimg.com/images/2018/02/27/n8qb.gif
properties (22)
authorsteemyoda
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t124749293z
categorypalnet
json_metadata{"app":"postpromoter/2.0.0"}
created2019-08-19 12:47:51
last_update2019-08-19 12:47:51
depth1
children0
last_payout2019-08-26 12:47: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_length140
author_reputation-1,181,563,121,002
root_title"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,702,388
net_rshares0
@tahirozgen ·
abs a bak, her zaman pozitif sonuç çıkartarak resmen toplum mühendisliği yapıyor. İçimizdeki negatiflere yaşam hakkı tanımıyor, illa da herkes pozitif olsun istiyor. Bu abs'ı sevmedim ben.

Ya round a ne demeli! O da bizlerin detaydaki farklılıklarımızı yok sayıyor ve sistemin dayattığı bir tamsayı olmaya zorluyor. Halbuki, virgülden sonralarımız bizim zenginliklerimizdir. round seni de sevmedim.

min ve max ise iki şirin kardeşe benziyor. Onlara pamuk şeker almalı. 
properties (22)
authortahirozgen
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190816t081303342z
categorypalnet
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["palnet"],"users":[],"links":[],"image":[]}
created2019-08-16 08:13:03
last_update2019-08-16 08:13:03
depth1
children4
last_payout2019-08-23 08:13: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_length471
author_reputation140,043,215,207,927
root_title"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,588,879
net_rshares0
@elektroyazilim ·
$1.93
Ya hocam ya siz nasıl bir insansınız :) İnanılmaz doğru çıkarımlar ama nereden aklınıza geliyor anlamıyorum :) min() ve max() ı sevmenize sevindim.  Onlara da sınıf farkı gözetiyor demediniz ya eminim onlar da sevmişlerdir ;)

Teşekkür ederim değerli yorumunuz için.
👍  , ,
properties (23)
authorelektroyazilim
permlinkpwblo3
categorypalnet
json_metadata{"tags":["palnet"],"app":"steemit/0.1"}
created2019-08-16 08:16:51
last_update2019-08-16 08:16:51
depth2
children3
last_payout2019-08-23 08:16:51
cashout_time1969-12-31 23:59:59
total_payout_value1.447 HBD
curator_payout_value0.482 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length266
author_reputation73,919,354,200,140
root_title"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,588,960
net_rshares5,700,845,587,646
author_curate_reward""
vote details (3)
@luckyvotes ·
re-elektroyazilim-pwblo3-20190822t010242357z
You got a 92.80% upvote from @luckyvotes courtesy of @elektroyazilim!
properties (22)
authorluckyvotes
permlinkre-elektroyazilim-pwblo3-20190822t010242357z
categorypalnet
json_metadata{"app":"postpromoter/2.1.2"}
created2019-08-22 01:02:42
last_update2019-08-22 01:02:42
depth3
children0
last_payout2019-08-29 01:02: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_length70
author_reputation29,364,484,293
root_title"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,805,120
net_rshares0
@minnowvotes ·
re-elektroyazilim-pwblo3-20190820t004643578z
You got a 15.56% upvote from @minnowvotes courtesy of @elektroyazilim!
properties (22)
authorminnowvotes
permlinkre-elektroyazilim-pwblo3-20190820t004643578z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-20 00:46:42
last_update2019-08-20 00:46:42
depth3
children0
last_payout2019-08-27 00:46: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_length71
author_reputation-125,291,280,752
root_title"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,723,546
net_rshares0
@redlambo ·
re-elektroyazilim-pwblo3-20190821t202919954z
You got a 50.00% upvote from @redlambo courtesy of @elektroyazilim! Make sure to use tag #redlambo to be considered for the curation post!
properties (22)
authorredlambo
permlinkre-elektroyazilim-pwblo3-20190821t202919954z
categorypalnet
json_metadata{"app":"postpromoter/1.9.2"}
created2019-08-21 20:29:18
last_update2019-08-21 20:29:18
depth3
children0
last_payout2019-08-28 20:29:18
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"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,798,374
net_rshares0
@votecenter ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190820t001635887z
This post has received a 16.67% upvote from @votecenter
properties (22)
authorvotecenter
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190820t001635887z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-20 00:16:39
last_update2019-08-20 00:16:39
depth1
children0
last_payout2019-08-27 00:16:39
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"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,722,892
net_rshares0
@whalepromobot ·
re-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t002700742z
You got a 33.33% upvote from @whalepromobot courtesy of @elektroyazilim!
properties (22)
authorwhalepromobot
permlinkre-elektroyazilim-abs-round-min-ve-max-fonksiyonlari-python-dersleri-tutorials-20190819t002700742z
categorypalnet
json_metadata{"app":"postpromoter/2.0.0"}
created2019-08-19 00:27:03
last_update2019-08-19 00:27:03
depth1
children0
last_payout2019-08-26 00:27: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"abs(), round(), min() ve max() fonksiyonları - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,683,131
net_rshares0