Skip to content

BaneenZehraAsif/Pycharm-project

Repository files navigation

Python Fundamentals & Data Structures 🚀

This repository contains a collection of Python scripts demonstrating core programming concepts, ranging from basic syntax and logic to foundational algorithms and data structures.

📁 Repository Structure

The project is organized into specific modules, each focusing on a different aspect of computer science:

1. Basic Logic & Operations (firstkashans,py.py)

  • 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/else statements.

2. Iteration & String Traversal (class2.py)

  • Loops: Examples of for loops using various range() parameters (start, stop, and step).
  • Search Logic: Scripts to count character frequency and find character indices within a string.

3. Searching Algorithms (class3.py)

  • Linear Search: Multiple implementations of the Linear Search algorithm, including:
    • Iterative search using for and while loops.
    • A modular approach using a Python function.
  • Array Management: Initializing and searching through lists/arrays.

4. Sorting Algorithms (class4.py)

  • Bubble Sort: A manual implementation of the Bubble Sort algorithm to organize numerical data in ascending order.

5. Data Structures (stack.py)

  • Stack Implementation: A custom implementation of a Stack data structure.
  • Features: Includes functional push() and pop() methods with overflow (stack full) and underflow (stack empty) error handling.

🛠️ Getting Started

Prerequisites

  • Python 3.x installed on your machine.

Running the Scripts

To run any of the files, use the following command in your terminal:

python fileName.py

Releases

No releases published

Packages

 
 
 

Contributors

Languages