Skip to content

Documenting my Python learning path through Codedex, Udemy, and Coursera courses

Notifications You must be signed in to change notification settings

onyxtide/Python_Exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Learning Exercises

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.

About This Repository

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

Repository Structure

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

Exercises

01 - Variables and Math

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

02 - Conditionals

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

03 - Loops

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

04 - Modules

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

05 - Projects

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)

Skills Demonstrated

  • Data Types: int, float, str
  • Operators: Arithmetic (+, -, *, /, **), relational (>, <, >=, ==), logical (and, or)
  • User Input: input() with type conversion (int(), float())
  • Control Flow: if/elif/else conditional branching
  • Iteration: while loops with counters and compound exit conditions
  • Modules: import random, random.randint()
  • Patterns: Accumulator pattern, input validation, multi-branch selection

Running the Exercises

Each file is a standalone Python script:

python3 01_variables_and_math/01_temperature.py

Current Focus

  • 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.

About

Documenting my Python learning path through Codedex, Udemy, and Coursera courses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages