{"id":15443742,"url":"https://github.com/omkarpathak/python-programs","last_synced_at":"2025-05-15T18:10:20.991Z","repository":{"id":41476640,"uuid":"87609429","full_name":"OmkarPathak/Python-Programs","owner":"OmkarPathak","description":"My collection of Python Programs","archived":false,"fork":false,"pushed_at":"2023-12-21T18:27:08.000Z","size":663,"stargazers_count":1080,"open_issues_count":56,"forks_count":609,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-03-31T22:19:06.312Z","etag":null,"topics":["competitive-programming","oop","python-programming","python3","scripts"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OmkarPathak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-04-08T05:04:16.000Z","updated_at":"2025-03-30T20:48:38.000Z","dependencies_parsed_at":"2022-08-10T02:27:23.771Z","dependency_job_id":"ae5aaf57-34c9-46e2-80a4-6a565c608e60","html_url":"https://github.com/OmkarPathak/Python-Programs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmkarPathak%2FPython-Programs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmkarPathak%2FPython-Programs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmkarPathak%2FPython-Programs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmkarPathak%2FPython-Programs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OmkarPathak","download_url":"https://codeload.github.com/OmkarPathak/Python-Programs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744334,"owners_count":20988783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["competitive-programming","oop","python-programming","python3","scripts"],"created_at":"2024-10-01T19:36:34.886Z","updated_at":"2025-04-07T23:09:14.135Z","avatar_url":"https://github.com/OmkarPathak.png","language":"Python","readme":"# Python-Programs\n[![GitHub stars](https://img.shields.io/github/stars/OmkarPathak/Python-Programs.svg)](https://github.com/OmkarPathak/Python-Programs/stargazers)\n![Python](https://img.shields.io/badge/Python-3.6-brightgreen.svg)\n\nThis is my collection of Python Programs.\u003cbr /\u003e\nFor python tutorials, visit my website:\u003cbr /\u003e\nhttp://www.omkarpathak.in\n\nOmkar Pathak,\u003cbr /\u003e\nPune, Maharashtra, India.\u003cbr /\u003e\n\n## Sorting Algorithms\n\n1. [Selection Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P24_SelectionSort.py)\n2. [Bubble Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P25_BubbleSort.py)\n3. [Insertion Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P26_InsertionSort.py)\n4. [Merge Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P27_MergeSort.py)\n5. [Quick Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P28_QuickSort.py)\n6. [Counting Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P48_CountingSort.py)\n7. [Bucket Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P52_BucketSort.py)\n8. [Shell Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P53_ShellSort.py)\n9. [Heap Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P66_HeapSort.py)\n\n## Searching Algorithms\n\n1. [Sequential Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P22_SequentialSearch.py)\n2. [Binary Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P23_BinarySearch.py)\n3. [N-ary Search](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P35_NarySearch.py)\n\n## Data Structures\n\n1. [Array](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P30_Array.py)\n    * [More on Arrays..](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Arrays)\n2. [Singly Linked List](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P31_SinglyLinkedList.py)\n3. [Doubly Linked List](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P33_DoublyLinkedList.py)\n    * [More on Linked Lists..](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Linked%20Lists)\n4. [Stack](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P34_Stack.py)\n    * [More on Stacks..](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Stack)\n5. [Queue](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P39_Queue.py)\n    * [More on Queues..](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Queue)\n6. [Hash Table](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P78_HashTable.py)\n\n## Simple Games in Python\n\n1. [Number Guessing Game](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P21_GuessTheNumber.py)\n2. [Hangman](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P37_HangmanGame.py)\n3. [Rock Paper Scissor](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P49_RockPaperScissors.py)\n4. [Tic Tac Toe](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P75_TicTacToe.py)\n\n## OOP\n\n1. [Class Definition](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P01_ClassDefinition.py)\n2. [Instance Methods](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P02_InstanceMethods.py)\n3. [Instance Attributes](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P03_InstanceAttributes.py)\n4. [Constructor (__init__)](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P04_InitConstructor.py)\n5. [Inheritance](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P06_Inheritance.py)\n6. [Multiple Inheritance](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P08_MultipleInheritence.py)\n7. [Private Variables](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P10_PrivateVariable.py)\n8. [Magic Methods](https://github.com/OmkarPathak/Python-Programs/blob/master/OOP/P11_MagicMethods.py)\n\n## Trees\n\n1. [Simple Binary Tree](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P62_BinaryTree.py)\n2. [Binary Search Tree](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P43_BinarySearchTree.py)\n3. [Depth First Traversal](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P64_DepthFirstTraversal.py)\n4. [Breadth First Traversal](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P65_BreadthFirstTraversal.py)\n5. [Count Leaf Nodes](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Trees/P02_CountLeafNodes.py)\n6. [Building Tree from Preorder and Inorder](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Trees/P03_TreeFromInorderAndPreorder.py)\n7. [Print all the paths to leaf nodes](https://github.com/OmkarPathak/Data-Structures-using-Python/tree/master/Trees/P04_RootToLeafPaths.py)\n\n## Graphs\n1. [Graph](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P63_Graph.py)\n2. [Breadth First Search](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P01_BreadthFirstSearch.py)\n3. [Depth First Search](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P02_DepthFirstSearch.py)\n4. [Detect Cycle in Directed Graph](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P03_DetectCycleInDirectedGraph.py)\n5. [Detect Cycle in Undirected Graph](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P04_DetectCycleInUndirectedGraph.py)\n6. [Topological Sort](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P68_TopologicalSort.py)\n7. [Prim's Algorithm](https://github.com/OmkarPathak/Data-Structures-using-Python/blob/master/Graph/P06_Prim's-Algorithm.py)\n\n## Scripts\n\n1. [Create Multiple Folders](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P01_FolderManipulation.py)\n2. [Count files](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P02_FileCount.py)\n3. [Get File sizes](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P03_GetFileSize.py)\n4. [Find if a file exists](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P04_FindIfAFileExists.py)\n5. [Folder organization](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P05_FileOrganizer.py)\n6. [Get Dictionary Meaning](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P06_GetMeaning.py)\n7. [Sending Mail](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P07_ScriptToSendMail.py)\n8. [Counting Number of Words](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P08_CountNumberOfWords.py)\n9. [Birthday Reminder](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P09_ReminderApplication.py)\n10. [Script to download tutorial from tutorials point](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P10_SciptToDownloadPDF.py)\n11. [Script to check email in your terminal](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P11_CheckEmail.py)\n12. [Script to find devices connected to Network](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P12_ScriptToFindDevicesConnectedInNetwork.py)\n13. [Script to create metadata for a file](https://github.com/OmkarPathak/Python-Programs/blob/master/Scripts/P13_Python_Create_File_With_Metadata.py)\n\n## Python Concepts\n\n1. [Variable Scope](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P02_VariableScope.py)\n2. [List Methods](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P03_ListsOperations.py)\n3. [Closures](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P44_Closures.py)\n4. [More on Closures](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P45_MoreOnClosures.py)\n5. [Decorators](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P46_Decorators.py)\n6. [More on Decorators](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P47_MoreOnDecorators.py)\n7. [List Comprehensions](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P50_ListComprehensions.py)\n8. [Python Generators](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P74_PythonGenerators.py)\n\n## Numpy\n1. [Introduction and Basics of Numpy](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P01_Introduction.py)\n2. [Numpy Data Types](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P02_NumpyDataTypes.py)\n3. [Numpy Array Attributes](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P03_NumpyAttributes.py)\n4. [Generate Numpy array from various numerical ranges](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P04_ArrayFromNumericalRange.py)\n5. [Numpy Array Manipulation operations](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P05_NumpyArrayManipulation.py)\n6. [Numpy String Functions](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P06_NumpyStringFunctions.py)\n7. [Numpy Mathematical Functions](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P07_NumpyMathematicalFunctions.py)\n8. [Numpy Arithmetical Operations](https://github.com/OmkarPathak/Python-Programs/blob/master/Numpy/P08_NumpyArithmeticOperations.py)\n\n## Mini Projects\n* [Address Book](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P61_AddressBook.py)\nWith Add, Modify, Search.\n* [Simple Python Keylogger](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P79_SimplePythonKeylogger.py)\n\n## Random Python Programs\n\n* [OS Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P20_OsModule.py)\n* [Logging](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P18_Logging.py)\n* [JSON Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P51_PythonJSON.py)\n* [Argument Parser](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P29_ArgumentParser.py)\n* [CSV Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P54_PythonCSV.py)\n* [Pickle Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P60_PickleModule.py)\n* [Hashing](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P38_HashingFile.py) Finding a Hash of a file.\n* [Cipher Text](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P40_CipherText.py)\nEncrypting and decrypting a message based on some key specified by the user.\n* [Factorial](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P04_Factorial.py)\nFinding the factorial of a number using recursion.\n* [Fibonacci](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P08_Fibonnaci.py)\nFinding the fibonaaci series upto a certain number using recursion.\n* [Count Characters](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P06_CharCount.py)\nCount the number(frequency) of Characters in a given sentence or string.\n* [Pattern](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P05_Pattern.py)\nImplementation of various Patterns using Python.\n* [LCM](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P10_LCM.py)\nFinding the LCM using Python.\n* [Palindrome](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P13_Palindrome.py)\nCheck whether the given string is palindrome or not.\n* [Isogram](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P55_Isogram.py)\nWord or Phrase without a repeating letter\n* [Pangram](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P56_Pangram.py)\nA sentence containing every letter of the alphabet\n* [Anagram](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P57_Anagram.py)\nRearranging of words or phrase to produce a new word or phrase, using all the original letters exactly once\n* [Perfect Number](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P58_PerfectNumber.py)\nCheck if the given number is a perfect number\n* [Pascal  Triangle](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P59_PascalTriangle.py)\nImplementation of Pascal Triangle\n* [Sieve Of Erathosthenes](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P67_SieveOfEratosthenes.py)\nOne of the efficient algorithms to find all the prime numbers upto n, where n can be upto 10 million\n* [Reverse the words](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P69_ReverseWords.py)\nReversing the order of WORDS in a sentence\n* [Python Progress bar](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P70_SimpleProgressBar.py)\nA simple progress bar helpful for showing the progress of a download\n* [Python unittest Module](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P71_PythonUnittest.py)\nA Python module for writing test cases\n* [Python Lambda Function](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P72_PythonLambda.py)\nAn example of Python Lambda function\n* [Python Encryption example using RSA Algorithm](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P73_SimplePythonEncryption.py)\nEncryption/ Decryption using RSA Algorithm\n* [Python ftplib](https://github.com/OmkarPathak/Python-Programs/blob/master/Programs/P76_PythonFTP.py)\nA simple Python FTP file transfer example\n* [Python Django Project (beginner)](https://github.com/modernwarfareuplink/fyleBanksApi)\nA simple Django Project with two endpoints to show IFSC and bank details\n\n# Donation\n\nIf 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 :)\n\n| PayPal | \u003ca href=\"https://paypal.me/omkarpathak27\" target=\"_blank\"\u003e\u003cimg src=\"https://www.paypalobjects.com/webstatic/mktg/logo/AM_mc_vs_dc_ae.jpg\" alt=\"Donate via PayPal!\" title=\"Donate via PayPal!\" /\u003e\u003c/a\u003e |\n|:-------------------------------------------:|:-------------------------------------------------------------:|\n| ₹ (INR)  | \u003ca href=\"https://www.instamojo.com/@omkarpathak/\" target=\"_blank\"\u003e\u003cimg src=\"https://www.soldermall.com/images/pic-online-payment.jpg\" alt=\"Donate via Instamojo\" title=\"Donate via instamojo\" /\u003e\u003c/a\u003e |\n","funding_links":["https://paypal.me/omkarpathak27"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkarpathak%2Fpython-programs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomkarpathak%2Fpython-programs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkarpathak%2Fpython-programs/lists"}