This repository contains Python scripts that I've written while learning Python. Each script is a representation of the concepts and skills I've learned throughout my learning journey.
-
hello.py
: The first program everyone writes! This script simply prints "Hello, World!" to the console. -
variables_and_types.py
: This script includes examples of variables and different data types in Python. -
control_flow.py
: This script showcases control flow elements in Python like if-else statements and for/while loops. -
functions.py
: This script contains examples of how to define and use functions in Python. -
classes.py
: This script includes basic examples of classes, objects, and Object-Oriented Programming. -
error_handling.py
: This script provides examples of how to handle errors and exceptions in Python. -
file_io.py
: Demonstrates how to read and write files in Python. -
libraries_and_modules.py
: Some examples of importing and using Python libraries and modules.... and many more!
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What you need to run this scripts:
Python 3.8+
-
Clone this repo to your local machine using
https://github.com/nkhalil98/python.git
-
Run each python file separately. For example,
python3 hello.py
Each Python script can be run from the command line with the python3
command. For example, to run hello_world.py
, navigate to its location and run python3 hello_world.py
.
- Python - The programming language used.
I'm happy to receive any help and advice from others. Feel free to create a pull request.
- [Nabil Khalil] - nkhalil98
This project is licensed under the MIT License - see the LICENSE.md file for details
- Static Array
- Dynamic Array (Python list)
- Singly Linked List
- Doubly Linked List
- Stack
- Queue
- Set
- Hash Map/Hash Table (Python dictionary)
- Tree
- Binary Tree and Binary Search Tree
- Min-Heap
- Max-Heap (Python heapq)
- Graph
- Linear Search
- Binary Search
- Naive Pattern Search
- Selection Sort
- Bubble Sort
- Insertion Sort
- Shell Sort
- Merge Sort
- Quick Sort
- Radix Sort
- Heap Sort
- Breadth-First Search
- Depth-First Search
- Dijkstra's Algorithm
- A* Algorithm