Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Python Exercises

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.


Level 1

  1. Body Mass Index (BMI) Calculator
    Functions to compute BMI and classify results according to standard health ranges.

  2. Temperature Converter
    Conversion between Celsius, Fahrenheit, and Kelvin. Includes formulas and an interactive script.

  3. Text Word Counter
    Text cleaning and word counting using dictionaries or collections.Counter.

  4. Reverse Dictionary
    Swaps keys and values in a dictionary, with validation to detect duplicates.


Level 2

  1. Reverse Dictionary with Duplicate Handling
    Extended version that groups keys into lists when multiple keys share the same value.

  2. Data Type Conversion
    Separates elements that can be converted to float from those that cannot.


Level 3

  1. Word Frequency and Alphabetical Sorting from Text Files
    Reads .txt files, computes word frequency, and organizes results by initial letter.

Requirements and Tech Stack

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

How to Use

  1. Open the file sprint07.ipynb using Jupyter Notebook or Google Colab.
  2. Run the cells corresponding to the exercises you want to explore or test.

About

Sprint 07: Python exercises of data processing, dictionary manipulation and file handling

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages