Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/omkarpathak/python-programs

My collection of Python Programs
https://github.com/omkarpathak/python-programs

competitive-programming oop python-programming python3 scripts

Last synced: 3 days ago
JSON representation

My collection of Python Programs

Awesome Lists containing this project

README

        

# Python-Programs
[![GitHub stars](https://img.shields.io/github/stars/OmkarPathak/Python-Programs.svg)](https://github.com/OmkarPathak/Python-Programs/stargazers)
![Python](https://img.shields.io/badge/Python-3.6-brightgreen.svg)

This is my collection of Python Programs.

For python tutorials, visit my website:

http://www.omkarpathak.in

Omkar Pathak,

Pune, Maharashtra, India.

## Sorting Algorithms

1. [Selection Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P24_SelectionSort.py)
2. [Bubble Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P25_BubbleSort.py)
3. [Insertion Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P26_InsertionSort.py)
4. [Merge Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P27_MergeSort.py)
5. [Quick Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P28_QuickSort.py)
6. [Counting Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P48_CountingSort.py)
7. [Bucket Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P52_BucketSort.py)
8. [Shell Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P53_ShellSort.py)
9. [Heap Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P66_HeapSort.py)

## Searching Algorithms

1. [Sequential Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P22_SequentialSearch.py)
2. [Binary Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P23_BinarySearch.py)
3. [N-ary Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P35_NarySearch.py)

## Data Structures

1. [Array](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P30_Array.py)
* [More on Arrays..](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Arrays)
2. [Singly Linked List](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P31_SinglyLinkedList.py)
3. [Doubly Linked List](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P33_DoublyLinkedList.py)
* [More on Linked Lists..](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Linked%20Lists)
4. [Stack](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P34_Stack.py)
* [More on Stacks..](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Stack)
5. [Queue](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P39_Queue.py)
* [More on Queues..](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Queue)
6. [Hash Table](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P78_HashTable.py)

## Simple Games in Python

1. [Number Guessing Game](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P21_GuessTheNumber.py)
2. [Hangman](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P37_HangmanGame.py)
3. [Rock Paper Scissor](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P49_RockPaperScissors.py)
4. [Tic Tac Toe](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P75_TicTacToe.py)

## OOP

1. [Class Definition](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P01_ClassDefinition.py)
2. [Instance Methods](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P02_InstanceMethods.py)
3. [Instance Attributes](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P03_InstanceAttributes.py)
4. [Constructor (__init__)](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P04_InitConstructor.py)
5. [Inheritance](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P06_Inheritance.py)
6. [Multiple Inheritance](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P08_MultipleInheritence.py)
7. [Private Variables](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P10_PrivateVariable.py)
8. [Magic Methods](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P11_MagicMethods.py)

## Trees

1. [Simple Binary Tree](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P62_BinaryTree.py)
2. [Binary Search Tree](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P43_BinarySearchTree.py)
3. [Depth First Traversal](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P64_DepthFirstTraversal.py)
4. [Breadth First Traversal](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P65_BreadthFirstTraversal.py)
5. [Count Leaf Nodes](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Trees/P02_CountLeafNodes.py)
6. [Building Tree from Preorder and Inorder](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Trees/P03_TreeFromInorderAndPreorder.py)
7. [Print all the paths to leaf nodes](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Trees/P04_RootToLeafPaths.py)

## Graphs
1. [Graph](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P63_Graph.py)
2. [Breadth First Search](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P01_BreadthFirstSearch.py)
3. [Depth First Search](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P02_DepthFirstSearch.py)
4. [Detect Cycle in Directed Graph](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P03_DetectCycleInDirectedGraph.py)
5. [Detect Cycle in Undirected Graph](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P04_DetectCycleInUndirectedGraph.py)
6. [Topological Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P68_TopologicalSort.py)
7. [Prim's Algorithm](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P06_Prim's-Algorithm.py)

## Scripts

1. [Create Multiple Folders](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P01_FolderManipulation.py)
2. [Count files](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P02_FileCount.py)
3. [Get File sizes](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P03_GetFileSize.py)
4. [Find if a file exists](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P04_FindIfAFileExists.py)
5. [Folder organization](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P05_FileOrganizer.py)
6. [Get Dictionary Meaning](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P06_GetMeaning.py)
7. [Sending Mail](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P07_ScriptToSendMail.py)
8. [Counting Number of Words](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P08_CountNumberOfWords.py)
9. [Birthday Reminder](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P09_ReminderApplication.py)
10. [Script to download tutorial from tutorials point](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P10_SciptToDownloadPDF.py)
11. [Script to check email in your terminal](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P11_CheckEmail.py)
12. [Script to find devices connected to Network](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P12_ScriptToFindDevicesConnectedInNetwork.py)
13. [Script to create metadata for a file](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P13_Python_Create_File_With_Metadata.py)

## Python Concepts

1. [Variable Scope](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P02_VariableScope.py)
2. [List Methods](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P03_ListsOperations.py)
3. [Closures](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P44_Closures.py)
4. [More on Closures](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P45_MoreOnClosures.py)
5. [Decorators](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P46_Decorators.py)
6. [More on Decorators](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P47_MoreOnDecorators.py)
7. [List Comprehensions](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P50_ListComprehensions.py)
8. [Python Generators](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P74_PythonGenerators.py)

## Numpy
1. [Introduction and Basics of Numpy](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P01_Introduction.py)
2. [Numpy Data Types](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P02_NumpyDataTypes.py)
3. [Numpy Array Attributes](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P03_NumpyAttributes.py)
4. [Generate Numpy array from various numerical ranges](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P04_ArrayFromNumericalRange.py)
5. [Numpy Array Manipulation operations](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P05_NumpyArrayManipulation.py)
6. [Numpy String Functions](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P06_NumpyStringFunctions.py)
7. [Numpy Mathematical Functions](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P07_NumpyMathematicalFunctions.py)
8. [Numpy Arithmetical Operations](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P08_NumpyArithmeticOperations.py)

## Mini Projects
* [Address Book](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P61_AddressBook.py)
With Add, Modify, Search.
* [Simple Python Keylogger](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P79_SimplePythonKeylogger.py)

## Random Python Programs

* [OS Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P20_OsModule.py)
* [Logging](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P18_Logging.py)
* [JSON Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P51_PythonJSON.py)
* [Argument Parser](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P29_ArgumentParser.py)
* [CSV Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P54_PythonCSV.py)
* [Pickle Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P60_PickleModule.py)
* [Hashing](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P38_HashingFile.py) Finding a Hash of a file.
* [Cipher Text](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P40_CipherText.py)
Encrypting and decrypting a message based on some key specified by the user.
* [Factorial](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P04_Factorial.py)
Finding the factorial of a number using recursion.
* [Fibonacci](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P08_Fibonnaci.py)
Finding the fibonaaci series upto a certain number using recursion.
* [Count Characters](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P06_CharCount.py)
Count the number(frequency) of Characters in a given sentence or string.
* [Pattern](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P05_Pattern.py)
Implementation of various Patterns using Python.
* [LCM](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P10_LCM.py)
Finding the LCM using Python.
* [Palindrome](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P13_Palindrome.py)
Check whether the given string is palindrome or not.
* [Isogram](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P55_Isogram.py)
Word or Phrase without a repeating letter
* [Pangram](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P56_Pangram.py)
A sentence containing every letter of the alphabet
* [Anagram](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P57_Anagram.py)
Rearranging of words or phrase to produce a new word or phrase, using all the original letters exactly once
* [Perfect Number](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P58_PerfectNumber.py)
Check if the given number is a perfect number
* [Pascal Triangle](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P59_PascalTriangle.py)
Implementation of Pascal Triangle
* [Sieve Of Erathosthenes](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P67_SieveOfEratosthenes.py)
One of the efficient algorithms to find all the prime numbers upto n, where n can be upto 10 million
* [Reverse the words](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P69_ReverseWords.py)
Reversing the order of WORDS in a sentence
* [Python Progress bar](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P70_SimpleProgressBar.py)
A simple progress bar helpful for showing the progress of a download
* [Python unittest Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P71_PythonUnittest.py)
A Python module for writing test cases
* [Python Lambda Function](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P72_PythonLambda.py)
An example of Python Lambda function
* [Python Encryption example using RSA Algorithm](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P73_SimplePythonEncryption.py)
Encryption/ Decryption using RSA Algorithm
* [Python ftplib](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P76_PythonFTP.py)
A simple Python FTP file transfer example
* [Python Django Project (beginner)](https://github.com/modernwarfareuplink/fyleBanksApi)
A simple Django Project with two endpoints to show IFSC and bank details

# Donation

If you have found my softwares to be of any use to you, do consider helping me pay my internet bills. This would encourage me to create many such softwares :)

| PayPal | Donate via PayPal! |
|:-------------------------------------------:|:-------------------------------------------------------------:|
| ₹ (INR) | Donate via Instamojo |