A structured collection of Python programming exercises organized by concept, progressing from fundamentals to multi-concept projects. Each section builds on skills developed in previous sections.
This repository documents my structured approach to mastering Python programming through multiple high-quality resources:
| Platform | Focus | Status |
|---|---|---|
| Codedex | Interactive Python fundamentals and projects | In Progress |
| freeCodeCamp - Python Certification | Quick, effective Python fundamentals | In Progress |
| Coursera | Academic approach to computer science and Python | Coming Soon |
Exercises are organized into numbered folders that reflect a logical learning progression. Within each folder, files are numbered to indicate recommended completion order.
01_variables_and_math/ Fundamentals: variables, arithmetic, type conversion
02_conditionals/ Control flow: if/elif/else, logical operators
03_loops/ Iteration: while loops, counters, loop control
04_modules/ Importing and using Python modules (random)
05_projects/ Multi-concept exercises combining all skills above
Covers variable assignment, arithmetic operators, exponents, user input, and type conversion.
| # | Exercise | Description | Concepts |
|---|---|---|---|
| 1 | temperature.py | Fahrenheit to Celsius conversion | Variables, arithmetic operators |
| 2 | bmi.py | Body Mass Index calculation | Exponents (**) |
| 3 | hypotenuse.py | Pythagorean theorem calculator | input(), int(), square roots |
| 4 | currency.py | Multi-currency to USD converter | Multiple inputs, type conversion |
Covers if, elif, else statements, relational operators, and logical operators (and, or).
| # | Exercise | Description | Concepts |
|---|---|---|---|
| 1 | grades.py | Pass/fail grade checker | if/else |
| 2 | ph_levels.py | pH scale classifier | elif, relational operators (<, >) |
| 3 | highschool_usa.py | Grade-to-classification mapping | Multiple elif, equality (==) |
| 4 | restaurant_reviews.py | Star rating classifier | float input, range comparisons |
| 5 | the_cyclone.py | Roller coaster eligibility check | Logical and operator |
| 6 | seasons_of_the_year.py | Month-to-season mapper | Logical or operator |
| 7 | planet_weights.py | Weight on different planets | Extended elif chains, float math |
Covers while loops, loop conditions, counters, and loop termination.
| # | Exercise | Description | Concepts |
|---|---|---|---|
| 1 | bank_pin.py | PIN validation with retry | while loop, input validation |
| 2 | guess_the_number.py | Number guessing game | while with counter, compound conditions (and) |
| 3 | detention.py | Detention writing lines exercise | range() function testing with a for loop |
| 4 | 99_bottles.py | Writing all 99 bottles lyrics with 5 lines of code | range() functions but with reversed and with steps, f-strings and interpolation (and) |
| 5 | snake_eyes.py | This simulates rolling two six-sided dice until both dice show 1 | random library import, while loop, and randint() function |
Covers importing Python modules and using the random library.
| # | Exercise | Description | Concepts |
|---|---|---|---|
| 1 | themagic8ball.py | Magic 8-Ball simulator | import random, randint() |
| 2 | snapple_random.py | Random Snapple bottle cap facts | random module, multi-branch selection |
Multi-concept exercises that combine skills from all previous sections.
| # | Exercise | Description | Concepts |
|---|---|---|---|
| 1 | sorting_hat.py | Hogwarts Sorting Hat quiz | Variables, accumulators (+=), input, conditionals |
| 2 | FizzBuzz.py | The famous fizzbuzz test | Loops, Conditionals, Modulo operator (%), Logical ordering (checking 15 before 3 or 5) |
- Data Types:
int,float,str - Operators: Arithmetic (
+,-,*,/,**), relational (>,<,>=,==), logical (and,or) - User Input:
input()with type conversion (int(),float()) - Control Flow:
if/elif/elseconditional branching - Iteration:
whileloops with counters and compound exit conditions - Modules:
import random,random.randint() - Patterns: Accumulator pattern, input validation, multi-branch selection
Each file is a standalone Python script:
python3 01_variables_and_math/01_temperature.py- Python fundamentals and syntax
- Data structures and algorithms
- Problem-solving and computational thinking
- Building towards data science and bioinformatics applications
This is a living repository that grows with my learning. All code represents my current understanding and will evolve as I advance through the curriculum.