This repository contains a set of progressively challenging Python exercises, organized into three levels. Each activity focuses on core programming skills such as data processing, dictionary manipulation, file handling, and basic algorithm design.
-
Body Mass Index (BMI) Calculator
Functions to compute BMI and classify results according to standard health ranges. -
Temperature Converter
Conversion between Celsius, Fahrenheit, and Kelvin. Includes formulas and an interactive script. -
Text Word Counter
Text cleaning and word counting using dictionaries orcollections.Counter. -
Reverse Dictionary
Swaps keys and values in a dictionary, with validation to detect duplicates.
-
Reverse Dictionary with Duplicate Handling
Extended version that groups keys into lists when multiple keys share the same value. -
Data Type Conversion
Separates elements that can be converted tofloatfrom those that cannot.
- Word Frequency and Alphabetical Sorting from Text Files
Reads.txtfiles, computes word frequency, and organizes results by initial letter.
- Language: Python 3.12
- Environment: Any editor or IDE capable of running Jupyter Notebooks (
.ipynb) or Python scripts.
Recommended: PyCharm or VSCode. - Dependencies: Only Python’s standard library (e.g.,
collections).
No external packages required. - Installation: Install Python and run the notebook in Jupyter, or convert it to a script.
- Open the file
sprint07.ipynbusing Jupyter Notebook or Google Colab. - Run the cells corresponding to the exercises you want to explore or test.