This repository contains a collection of Python scripts demonstrating core programming concepts, ranging from basic syntax and logic to foundational algorithms and data structures.
The project is organized into specific modules, each focusing on a different aspect of computer science:
- Arithmetic & Math: Implementations of floor division (
//) and remainder/modulo (%) operations. - String Manipulation: Concatenating strings and handling user input.
- Conditional Logic: Grade calculation logic and a basic functional calculator using
if/elif/elsestatements.
- Loops: Examples of
forloops using variousrange()parameters (start, stop, and step). - Search Logic: Scripts to count character frequency and find character indices within a string.
- Linear Search: Multiple implementations of the Linear Search algorithm, including:
- Iterative search using
forandwhileloops. - A modular approach using a Python function.
- Iterative search using
- Array Management: Initializing and searching through lists/arrays.
- Bubble Sort: A manual implementation of the Bubble Sort algorithm to organize numerical data in ascending order.
- Stack Implementation: A custom implementation of a Stack data structure.
- Features: Includes functional
push()andpop()methods with overflow (stack full) and underflow (stack empty) error handling.
- Python 3.x installed on your machine.
To run any of the files, use the following command in your terminal:
python fileName.py