🐍 Python Temel Programlama Soruları
🚀 Algoritmik Düşünce ve Problem Çözme Becerileri
📚 Sorular • 🎬 Mini Proje • 🛠️ Kurulum
📊 Proje İstatistikleri
| 📈 Metrik | 🔢 Değer |
|---|---|
| Toplam Soru | 9 |
| Mini Proje | 1 |
| Kapsanan Konular | 15+ |
| Programlama Dili | Python 🐍 |
🎯 Öğrenme Hedefleri
graph LR
A[🧠 Algoritmik Düşünce] --> B[🔧 Python Temelleri]
B --> C[📈 Veri Analizi]
C --> D[💡 Problem Çözme]
D --> E[🚀 Proje Geliştirme]
- 🧠 Algoritmik Düşünce: Problem çözme stratejileri ve mantıksal yaklaşım
- 🔧 Python Temelleri: Döngüler, koşullar, veri yapıları ve string işlemleri
- 📈 Veri Analizi: İstatistik, filtreleme ve pattern recognition
- 💡 Problem Çözme: Gerçek dünya problemlerine programatik çözümler
📚 Sorular
🔢 Soru 1 - Sayı Analizi
Amaç: Girilen sayının özelliklerini analiz etmek
🎯 Ne Yapıyor:
- Sayının pozitif/negatif/sıfır kontrolü
- Tek/çift sayı tespiti
- Kombinasyon analizi (Örn: “Pozitif Çift”)
🛠️ Kullanılan Teknolojiler:
✅ if-else yapısı
✅ modulo operatörü (%)
✅ input() fonksiyonu
✅ koşullu string birleştirme
🔤 Soru 2 - Harf Frekans Analizi
Amaç: Kelimelerdeki harf dağılımını analiz etmek
🎯 Ne Yapıyor:
- Her harfin geçme sayısını hesaplar
- Dictionary formatında sonuç döndürür
- Counter modülü kullanımı
🛠️ Kullanılan Teknolojiler:
✅ collections.Counter
✅ string manipülasyonu
✅ dictionary yapısı
💡 Örnek Çıktı:
Input: "data"
Output: Counter({'a': 2, 'd': 1, 't': 1})
🔐 Soru 3 - Şifre Güvenlik Kontrolü
Amaç: Güçlü şifre kriterlerini kontrol etmek
🎯 Kontrol Kriterleri:
- ✅ En az 8 karakter
- ✅ En az 1 büyük harf
- ✅ En az 1 rakam
🛠️ Kullanılan Teknolojiler:
✅ string methods (isupper(), isdecimal())
✅ len() fonksiyonu
✅ list comprehension
✅ güvenlik validation
📊 Soru 4 - Liste Operasyonları
Amaç: Matematiksel liste analizi ve filtreleme
🎯 Ne Yapıyor:
- Liste ortalamasını hesaplar
- Ortalamadan büyük sayıları ayırır
- Dinamik liste manipülasyonu
🛠️ Kullanılan Teknolojiler:
✅ liste işlemleri
✅ matematiksel hesaplamalar
✅ döngüler ve koşullar
✅ liste filtreleme
📈 Test Verisi:
data = [12, 4, 9, 25, 30, 7, 18]
ortalama = 15.0
büyükler = [25, 30, 18]
⭐ Soru 5 - Desen Çizimleri
Amaç: Nested loop ile geometrik desenler
🎯 Ne Yapıyor:
*
**
***
****
*****
🛠️ Kullanılan Teknolojiler:
✅ nested loops
✅ string çarpma (*)
✅ range() fonksiyonu
✅ pattern algorithms
🔄 Soru 6 - While Döngü Kontrolü
Amaç: Dinamik veri toplama ve istatistik
🎯 Ne Yapıyor:
- Kullanıcıdan sürekli sayı alır
- 0 girildiğinde durur
- Toplam ve ortalama hesaplar
🛠️ Kullanılan Teknolojiler:
✅ while döngüsü
✅ break statement
✅ sayaç ve toplam değişkenleri
✅ istatistiksel hesaplamalar
🔄 Soru 7 - Palindrom Detektörü
Amaç: String simetri analizi
🎯 Ne Yapıyor:
- Kelimenin tersini kontrol eder
- Case-insensitive karşılaştırma
- Algoritma mantığı kullanır
🛠️ Kullanılan Teknolojiler:
✅ string indexing
✅ lower() metodu
✅ algoritma tasarımı
✅ boolean logic
💡 Örnekler:
✅ "kayak" → Palindrom
✅ "Kayak" → Palindrom
❌ "python" → Değil
📝 Soru 8 - List Comprehension
Amaç: Matematiksel filtreleme ve dönüşüm
🎯 Ne Yapıyor:
- 1-100 arası sayıları tarar
- 3’e VE 5’e bölünebilenleri bulur
- Karelerini hesaplar
🛠️ Kullanılan Teknolojiler:
✅ range() fonksiyonu
✅ modulo operatörü
✅ çoklu koşul kontrolü
✅ matematiksel işlemler
📊 Sonuç:
[15, 30, 45, 60, 75, 90] # 3 ve 5'e bölünenler
🔤 Soru 9 - String Formatlaması
Amaç: Metin işleme ve formatlaması
🎯 Ne Yapıyor:
- Cümleyi kelimelere ayırır
- Her kelimenin ilk harfini büyütür
- Yeni formatlı string oluşturur
🛠️ Kullanılan Teknolojiler:
✅ split() metodu
✅ capitalize() metodu
✅ string concatenation
✅ döngüler
💡 Örnek:
Input: "python veri bilimi"
Output: "Python Veri Bilimi"
🎬 Mini Proje - Film Yorumu Analizi
📊 Gelişmiş Text Mining ve İstatistiksel Analiz
🎯 Amaç: Gerçek dünya veri analizi simülasyonu
🚀 Özellikler
| 🔍 Özellik | 📝 Açıklama |
|---|---|
| 📊 İstatistiksel Analiz | Yorum uzunlukları, ortalama hesaplama |
| 🔍 Keyword Detection | “İyi” kelime arama ve sayma algoritması |
| 📏 Min/Max Bulma | En uzun ve kısa yorum tespiti |
| 💾 Dinamik Veri Toplama | While döngüsü ile esnek input sistemi |
📈 Analiz Sonuçları
🎬 Film Yorumu Analiz Raporu
=====================================
📊 Toplam yorum sayısı: 7
🔍 "iyi" geçen yorum sayısı: 2
📏 En uzun yorum: "baya iyi"
📏 En kısa yorum: "iyi"
📈 Ortalama uzunluk: 5.57 karakter
🧠 Kullanılan Algoritma ve Yapılar
✅ While döngüsü ve break logic
✅ Liste manipülasyonu
✅ String arama algoritmaları
✅ Min/Max bulma algoritmaları
✅ İstatistiksel hesaplamalar
✅ Kullanıcı etkileşimi (UX)
🛠️ Kurulum
📋 Gereksinimler
Python 3.8+
Jupyter Notebook/Lab
⚡ Hızlı Başlangıç
- 📂 Repository’yi klonlayın:
git clone https://github.com/Software-Guardians/Python-Basic-Template-2
cd Python-Basic-Template-2
- 🚀 Jupyter’ı başlatın:
# Jupyter Notebook
jupyter notebook
# Veya JupyterLab (önerilen)
jupyter lab
- 📖 Notebook’u açın:
main.ipynb
📚 Konu Haritası
mindmap
root((🐍 Python Temelleri))
🔢 Sayısal İşlemler
Aritmetik
Karşılaştırma
Modulo
🔤 String İşlemleri
Manipülasyon
Formatting
Arama
📊 Veri Yapıları
Listeler
Dictionary
Counter
🔄 Kontrol Yapıları
if-else
while
for
🎯 Algoritmalar
Palindrom
Pattern
Search
🎓 Seviye Rehberi
| 📶 Seviye | 🎯 Sorular | 💡 Öğrenecekleriniz |
|---|---|---|
| 🟢 Başlangıç | 1, 5, 9 | Temel syntax, basit algoritmalar |
| 🟡 Orta | 2, 3, 4, 6, 8 | Veri yapıları, döngüler |
| 🔴 İleri | 7, Mini Proje | Algoritma tasarımı, kompleks mantık |
🤝 Katkıda Bulunma
- 🍴 Fork yapın
- 🌟 Feature branch oluşturun (
git checkout -b feature/amazing-feature) - 💾 Commit yapın (
git commit -m 'Add amazing feature') - 📤 Push edin (
git push origin feature/amazing-feature) - 🔄 Pull Request açın
📄 Lisans
Bu proje MIT lisansı altında lisanslanmıştır.
📞 İletişim
🐙 GitHub: Emrullah Enis Çetinkaya 📧 Email: [email protected]
💡 Kodlayarak öğrenin, pratik yaparak ustalaşın! 💡
⭐ Beğendiyseniz yıldız vermeyi unutmayın! ⭐
🐍 Python Basic Programming Questions
🚀 Algorithmic Thinking and Problem Solving Skills
📚 Questions • 🎬 Mini Project • 🛠️ Installation
📊 Project Statistics
| 📈 Metric | 🔢 Value |
|---|---|
| Total Questions | 9 |
| Mini Project | 1 |
| Covered Topics | 15+ |
| Programming Language | Python 🐍 |
🎯 Learning Objectives
graph LR
A[🧠 Algorithmic Thinking] --> B[🔧 Python Basics]
B --> C[📈 Data Analysis]
C --> D[💡 Problem Solving]
D --> E[🚀 Project Development]
- 🧠 Algorithmic Thinking: Problem-solving strategies and logical approach
- 🔧 Python Basics: Loops, conditions, data structures, and string operations
- 📈 Data Analysis: Statistics, filtering, and pattern recognition
- 💡 Problem Solving: Programmatic solutions to real-world problems
📚 Questions
🔢 Question 1 - Number Analysis
Purpose: Analyze the properties of the entered number
🎯 What it does:
- Positive/negative/zero check
- Odd/even number detection
- Combination analysis (e.g., “Positive Even”)
🛠️ Technologies Used:
✅ if-else structure
✅ modulo operator (%)
✅ input() function
✅ conditional string concatenation
🔤 Question 2 - Letter Frequency Analysis
Purpose: Analyze letter distribution in words
🎯 What it does:
- Calculates occurrence count of each letter
- Returns result in dictionary format
- Uses Counter module
🛠️ Technologies Used:
✅ collections.Counter
✅ string manipulation
✅ dictionary structure
💡 Example Output:
Input: "data"
Output: Counter({'a': 2, 'd': 1, 't': 1})
🔐 Question 3 - Password Security Check
Purpose: Check strong password criteria
🎯 Validation Criteria:
- ✅ At least 8 characters
- ✅ At least 1 uppercase letter
- ✅ At least 1 digit
🛠️ Technologies Used:
✅ string methods (isupper(), isdecimal())
✅ len() function
✅ list comprehension
✅ security validation
📊 Question 4 - List Operations
Purpose: Mathematical list analysis and filtering
🎯 What it does:
- Calculates list average
- Separates numbers greater than average
- Dynamic list manipulation
🛠️ Technologies Used:
✅ list operations
✅ mathematical calculations
✅ loops and conditions
✅ list filtering
📈 Test Data:
data = [12, 4, 9, 25, 30, 7, 18]
average = 15.0
greater_than_avg = [25, 30, 18]
⭐ Question 5 - Pattern Drawing
Purpose: Geometric patterns with nested loops
🎯 What it does:
*
**
***
****
*****
🛠️ Technologies Used:
✅ nested loops
✅ string multiplication (*)
✅ range() function
✅ pattern algorithms
🔄 Question 6 - While Loop Control
Purpose: Dynamic data collection and statistics
🎯 What it does:
- Continuously takes numbers from user
- Stops when 0 is entered
- Calculates sum and average
🛠️ Technologies Used:
✅ while loop
✅ break statement
✅ counter and sum variables
✅ statistical calculations
🔄 Question 7 - Palindrome Detector
Purpose: String symmetry analysis
🎯 What it does:
- Checks the reverse of the word
- Case-insensitive comparison
- Uses algorithm logic
🛠️ Technologies Used:
✅ string indexing
✅ lower() method
✅ algorithm design
✅ boolean logic
💡 Examples:
✅ "kayak" → Palindrome
✅ "Kayak" → Palindrome
❌ "python" → Not palindrome
📝 Question 8 - List Comprehension
Purpose: Mathematical filtering and transformation
🎯 What it does:
- Scans numbers from 1-100
- Finds numbers divisible by both 3 AND 5
- Calculates their squares
🛠️ Technologies Used:
✅ range() function
✅ modulo operator
✅ multiple condition check
✅ mathematical operations
📊 Result:
[15, 30, 45, 60, 75, 90] # Numbers divisible by 3 and 5
🔤 Question 9 - String Formatting
Purpose: Text processing and formatting
🎯 What it does:
- Splits sentence into words
- Capitalizes first letter of each word
- Creates new formatted string
🛠️ Technologies Used:
✅ split() method
✅ capitalize() method
✅ string concatenation
✅ loops
💡 Example:
Input: "python data science"
Output: "Python Data Science"
🎬 Mini Project - Movie Review Analysis
📊 Advanced Text Mining and Statistical Analysis
🎯 Purpose: Real-world data analysis simulation
🚀 Features
| 🔍 Feature | 📝 Description |
|---|---|
| 📊 Statistical Analysis | Comment lengths, average calculation |
| 🔍 Keyword Detection | “Good” word search and counting algorithm |
| 📏 Min/Max Finding | Longest and shortest comment detection |
| 💾 Dynamic Data Collection | Flexible input system with while loop |
📈 Analysis Results
🎬 Movie Review Analysis Report
=====================================
📊 Total number of comments: 7
🔍 Comments containing "good": 2
📏 Longest comment: "pretty good"
📏 Shortest comment: "good"
📈 Average length: 5.57 characters
🧠 Used Algorithms and Structures
✅ While loop and break logic
✅ List manipulation
✅ String search algorithms
✅ Min/Max finding algorithms
✅ Statistical calculations
✅ User interaction (UX)
🛠️ Installation
📋 Requirements
Python 3.8+
Jupyter Notebook/Lab
⚡ Quick Start
- 📂 Clone the repository:
git clone https://github.com/Software-Guardians/Python-Basic-Template-2
cd Python-Basic-Template-2
- 🚀 Start Jupyter:
# Jupyter Notebook
jupyter notebook
# Or JupyterLab (recommended)
jupyter lab
- 📖 Open the notebook:
main.ipynb
📚 Topic Map
mindmap
root((🐍 Python Basics))
🔢 Numerical Operations
Arithmetic
Comparison
Modulo
🔤 String Operations
Manipulation
Formatting
Search
📊 Data Structures
Lists
Dictionary
Counter
🔄 Control Structures
if-else
while
for
🎯 Algorithms
Palindrome
Pattern
Search
🎓 Level Guide
| 📶 Level | 🎯 Questions | 💡 What You’ll Learn |
|---|---|---|
| 🟢 Beginner | 1, 5, 9 | Basic syntax, simple algorithms |
| 🟡 Intermediate | 2, 3, 4, 6, 8 | Data structures, loops |
| 🔴 Advanced | 7, Mini Project | Algorithm design, complex logic |
🤝 Contributing
- 🍴 Fork the project
- 🌟 Create your feature branch (
git checkout -b feature/amazing-feature) - 💾 Commit your changes (
git commit -m 'Add amazing feature') - 📤 Push to the branch (
git push origin feature/amazing-feature) - 🔄 Open a Pull Request
📄 License
This project is licensed under the MIT License.
📞 Contact
🐙 GitHub: Emrullah Enis Çetinkaya 📧 Email: [email protected]
💡 Learn by coding, master by practicing! 💡
⭐ Don’t forget to star if you liked it! ⭐