Page 9 - Bilgisayar Bilimi-Kur 1- 2017-2018
P. 9
7.4. Negatif Mantık Kullanımı .................................................................................................................................................................................................................................................................................................... 90
7.5. Mantık Dönüşümleri ...................................................................................................................................................................................................................................................................................................................... 90
7.6. Hangi Mantık Yapısı? .................................................................................................................................................................................................................................................................................................................... 91
7.7. Karar Tabloları ........................................................................................................................................................................................................................................................................................................................................... 93
8. DÖNGÜ YAPISI İLE PROBLEM ÇÖZME
8.1. Döngü Mantık Yapısı .................................................................................................................................................................................................................................................................................................................... 96
8.2. Arttırma ............................................................................................................................................................................................................................................................................................................................................................... 96
8.3. Biriktirme .......................................................................................................................................................................................................................................................................................................................................................... 97
8.4. While/While End Döngüsü .............................................................................................................................................................................................................................................................................................. 97
8.5. Repeat/Until Döngüsü ................................................................................................................................................................................................................................................................................................................ 99
8.6. Otomatik Sayaç Döngüsü ................................................................................................................................................................................................................................................................................................... 101
8.7. İç İçe Döngüler ........................................................................................................................................................................................................................................................................................................................................ 103
8.8. Göstergeler ..................................................................................................................................................................................................................................................................................................................................................... 105
8.9. Öz Yineleme ................................................................................................................................................................................................................................................................................................................................................. 105
II. BÖLÜM
PYTHON İLE PROGRAMLAMANIN TEMELLERİ
1. PYTHON İLE PROGRAMLAMANIN TEMELLERİ
1.1. Yazılım Geliştirme Süreci ..................................................................................................................................................................................................................................................................................................... 109
1.1.1 Yazılım ................................................................................................................................................................................................................................................................................................................................................. 109
1.1.2. Yazılım Geliştirme Ortamları ................................................................................................................................................................................................................................................................... 110
1.1.3. Editörler .......................................................................................................................................................................................................................................................................................................................................... 110
1.1.4. Derleyiciler ................................................................................................................................................................................................................................................................................................................................. 111
1.1.5. Yorumlayıcılar ....................................................................................................................................................................................................................................................................................................................... 111
1.1.6. Hata Ayıklayıcılar .......................................................................................................................................................................................................................................................................................................... 112
1.1.7. Yanaylaçlar ................................................................................................................................................................................................................................................................................................................................. 112
1.1.8. Bütünleştirilmiş Geliştirme Ortamları ..................................................................................................................................................................................................................................... 112
1.2. Neden Python? ....................................................................................................................................................................................................................................................................................................................................... 114
1.3. Python Sürümleri ............................................................................................................................................................................................................................................................................................................................... 114
2. DEĞERLER VE DEĞİŞKENLER
2.1. Tam Sayı ve Diziler ......................................................................................................................................................................................................................................................................................................................... 116
2.2. Değişkenler ve Atama ................................................................................................................................................................................................................................................................................................................. 119
2.3. Reel Sayılar ................................................................................................................................................................................................................................................................................................................................................... 122
2.4. Belirteçler ......................................................................................................................................................................................................................................................................................................................................................... 124
3. İFADELER VE ARİTMETİK İŞLEMLER
3.1. Sabit Değerler ............................................................................................................................................................................................................................................................................................................................................ 127
3.2. Python’da Sık Kullanılan Aritmetik İkili Operatörler ....................................................................................................................................................................................................... 127
3.3. Karışık Türlü İfadeler .................................................................................................................................................................................................................................................................................................................. 128
3.4. Operatör Önceliği ve Birleşim ...................................................................................................................................................................................................................................................................................... 128
IX