create account

String Metotları #3 - Python Dersleri (Tutorials) by elektroyazilim

View this thread on: hive.blogpeakd.comecency.com
· @elektroyazilim ·
$17.73
String Metotları #3 - Python Dersleri (Tutorials)
![yeni.jpg](https://cdn.steemitimages.com/DQmVqEHkajCZyuMfc1Nn7AfRj9QwYTddNmLcySkpi48PD1S/yeni.jpg) 

Merhabalar

Python programlama derslerine string metotlarıyla devam ediyoruz. 

## strip() metodu

_strip()_ metodu parametre olarak aldığı değeri, stringin başından ve sonundan siler.

Örneğin bir şifre girildi ancak bu şifrenin başında ve sonunda boşluklar bırakılmışsa, bu boşlukları silmek için kullanılabilir. 

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

Silinecek karakter boşluk karakteri olduğu için, metoda herhangi bir parametre geçirmeye gerek yoktur. Örnekte olduğu gibi boş kullanılması yeterlidir.

>  _strip()_ metoduna herhangi bir parametre girilmezse varsayılan olarak boşluk karakteri kabul edilir.

##  lstrip() ve rstrip() metodları

Bu metotlar da _strip()_ metodunun yaptığı şeyin aynısını yapmaktadır. 

_strip()_ metodundan farklı olarak _lstrip()_ metodu, parametre olarak aldığı değeri stringin solundan (başındaki) silerken; _rstrip()_ metodu stringin sağından yani sonundan silme işlemi yapar.

Uygulamasını görelim :

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

Örneklerde görüldüğü gibi stringin sol ve sağ tarafındaki boşluklar silindi. _strip()_ metodunun başındaki "l", left yani sol anlamında kullanılırken "r", right yani sağ anlamında kullanılmaktadır.

Bu metotları kullanırken boşluk dışındaki karakterleri de silebilirsiniz :

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

## join() metodu

_join()_ metodu, liste elemanlarını verilen string ifadeyle birleştirilmesini sağlar.

Uygulamasını görelim :

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

Örnekte görüldüğü gibi _join()_ metodunu kullanarak liste elemanları arasına istediğimiz karakteri sokabilir ve liste elemanlarından oluşan bir string elde edebiliriz.

_join()_ metodunu kullanarak harfler arasına nokta karakteri de koyabiliriz:

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


Ş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
permlinkstring-metotlari-3-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/DQmcT7oaweQpyQmGdG2m81E6UtVzR1hvXMD8V1ndo6LbNJR/image.png","https://cdn.steemitimages.com/DQmZ4vDAe1pc7KT7xFGxsiFp1GazuoCdPHKaYgSQsrhovB7/image.png","https://cdn.steemitimages.com/DQmP1xCtajSMn9iwWqi1UzuMUYePGC8RmDDM9U33oRkGdfi/image.png","https://cdn.steemitimages.com/DQmUTdEuxW3iiB8WPDrPT67tSwDo762wAEQxXK5Umv7jZ2Z/image.png","https://cdn.steemitimages.com/DQmc4Axsz1T56kmJ5PP61fDcP6WHEKd6ZTST2Xqww95sbJS/image.png","https://cdn.steemitimages.com/DQmYZw2bhUomeivJwQ8CiLaTzXTbJPLd1PsSGdcoEE1DfKP/yesilayrca.png"],"app":"marlians/0.1","format":"markdown"}
created2019-08-18 06:39:48
last_update2019-08-18 06:39:48
depth0
children9
last_payout2019-08-25 06:39:48
cashout_time1969-12-31 23:59:59
total_payout_value13.472 HBD
curator_payout_value4.260 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,510
author_reputation73,919,354,200,140
root_title"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,655,770
net_rshares52,585,682,828,114
author_curate_reward""
vote details (61)
@bid4joy ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190821t021945355z
You got a 50.00% upvote from @bid4joy courtesy of @elektroyazilim!
properties (22)
authorbid4joy
permlinkre-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190821t021945355z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-21 02:19:45
last_update2019-08-21 02:19:45
depth1
children0
last_payout2019-08-28 02:19: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_length67
author_reputation11,746,524,585,557
root_title"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,768,253
net_rshares0
@brupvoter ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190821t142202412z
You got a 65.41% upvote from @brupvoter courtesy of @elektroyazilim!
properties (22)
authorbrupvoter
permlinkre-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190821t142202412z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-21 14:22:03
last_update2019-08-21 14:22:03
depth1
children0
last_payout2019-08-28 14: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_length69
author_reputation13,657,314,846,422
root_title"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,786,363
net_rshares0
@edensgarden ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190823t095604158z
Thanks for using @edensgarden!
properties (22)
authoredensgarden
permlinkre-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190823t095604158z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-23 09:56:03
last_update2019-08-23 09:56:03
depth1
children0
last_payout2019-08-30 09:56: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_length31
author_reputation-100,797,867,719
root_title"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,856,057
net_rshares0
@joeparys ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190821t012753328z
You got a 19.17% 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-string-metotlari-3-python-dersleri-tutorials-20190821t012753328z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-21 01:27:51
last_update2019-08-21 01:27:51
depth1
children0
last_payout2019-08-28 01:27: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,150,391,439,389
root_title"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,767,169
net_rshares0
@luckyvotes ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190823t015627859z
You got a 93.11% upvote from @luckyvotes courtesy of @elektroyazilim!
properties (22)
authorluckyvotes
permlinkre-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190823t015627859z
categorypalnet
json_metadata{"app":"postpromoter/2.1.2"}
created2019-08-23 01:56:27
last_update2019-08-23 01:56:27
depth1
children0
last_payout2019-08-30 01:56: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_length70
author_reputation29,364,484,293
root_title"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,845,091
net_rshares0
@minnowvotes ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190820t192823757z
You got a 94.14% upvote from @minnowvotes courtesy of @elektroyazilim!
properties (22)
authorminnowvotes
permlinkre-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190820t192823757z
categorypalnet
json_metadata{"app":"postpromoter/2.1.1"}
created2019-08-20 19:28:24
last_update2019-08-20 19:28:24
depth1
children0
last_payout2019-08-27 19:28: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"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,758,530
net_rshares0
@redlambo ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190821t180537242z
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-string-metotlari-3-python-dersleri-tutorials-20190821t180537242z
categorypalnet
json_metadata{"app":"postpromoter/1.9.2"}
created2019-08-21 18:05:36
last_update2019-08-21 18:05:36
depth1
children0
last_payout2019-08-28 18:05: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_length139
author_reputation123,143,757,359
root_title"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,794,090
net_rshares0
@steemyoda ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190822t055427369z
The force is with you! You got a 15.83% upvote from @steemyoda courtesy of @elektroyazilim!

http://ultraimg.com/images/2018/02/27/n8qb.gif
properties (22)
authorsteemyoda
permlinkre-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190822t055427369z
categorypalnet
json_metadata{"app":"postpromoter/2.0.0"}
created2019-08-22 05:54:30
last_update2019-08-22 05:54:30
depth1
children0
last_payout2019-08-29 05:54:30
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"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,811,325
net_rshares0
@whalepromobot ·
re-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190821t024349538z
You got a 50.00% upvote from @whalepromobot courtesy of @elektroyazilim!
properties (22)
authorwhalepromobot
permlinkre-elektroyazilim-string-metotlari-3-python-dersleri-tutorials-20190821t024349538z
categorypalnet
json_metadata{"app":"postpromoter/2.0.0"}
created2019-08-21 02:43:54
last_update2019-08-21 02:43:54
depth1
children0
last_payout2019-08-28 02:43: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"String Metotları #3 - Python Dersleri (Tutorials)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,768,766
net_rshares0