{"id":15009706,"url":"https://github.com/cheatsheet-lang/python","last_synced_at":"2025-04-09T17:51:34.156Z","repository":{"id":36764083,"uuid":"225501693","full_name":"Cheatsheet-lang/Python","owner":"Cheatsheet-lang","description":"Python cheatsheet","archived":false,"fork":false,"pushed_at":"2022-10-11T15:57:14.000Z","size":69,"stargazers_count":39,"open_issues_count":1,"forks_count":13,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-23T19:51:24.286Z","etag":null,"topics":["cheatsheet","command","datatype","hacktoberfest","hacktoberfest2020","language","line","py","python","python-cheatsheet","syntax","third-party-libraries"],"latest_commit_sha":null,"homepage":"","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/Cheatsheet-lang.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}},"created_at":"2019-12-03T01:18:32.000Z","updated_at":"2025-01-26T20:11:43.000Z","dependencies_parsed_at":"2022-08-28T08:00:30.350Z","dependency_job_id":null,"html_url":"https://github.com/Cheatsheet-lang/Python","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/Cheatsheet-lang%2FPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cheatsheet-lang%2FPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cheatsheet-lang%2FPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cheatsheet-lang%2FPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cheatsheet-lang","download_url":"https://codeload.github.com/Cheatsheet-lang/Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083124,"owners_count":21045046,"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":["cheatsheet","command","datatype","hacktoberfest","hacktoberfest2020","language","line","py","python","python-cheatsheet","syntax","third-party-libraries"],"created_at":"2024-09-24T19:27:48.779Z","updated_at":"2025-04-09T17:51:34.134Z","avatar_url":"https://github.com/Cheatsheet-lang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Cheatsheet\n\n# Table of Content\n\n\u003c!-- vim-markdown-toc GFM --\u003e\n\n- [Main](#main)\n- [Basic and necessary commands needed to execute a well-defined python code at the command line.](#basic-and-necessary-commands-needed-to-execute-a-well-defined-python-code-at-the-command-line)\n  - [Opening a python shell.](#opening-a-python-shell)\n  - [Installing a package](#installing-a-package)\n  - [Running a python script](#running-a-python-script)\n  - [Calculating the time of execution](#calculating-the-time-of-execution)\n  - [Importing a py script](#importing-a-py-script)\n- [Getting started with the language](#getting-started-with-the-language)\n  - [Basic I/O](#basic-io)\n  - [Variables and Constants](#variables-and-constants)\n  - [Conditional Statements](#conditional-statements)\n  - [Iterative statements](#iterative-statements)\n  - [String formatting](#string-formatting)\n- [Function](#function)\n  - [Function Call](#function-call)\n  - [Function as Object](#function-as-object)\n  - [Nested Function](#nested-function)\n  - [Lambda](#lambda)\n- [Data Structures](#data-structures)\n  - [Lists](#lists)\n  - [Dictionaries](#dictionaries)\n  - [Tuple](#tuple)\n    - [Changing Tuple Values](#changing-tuple-values)\n    - [Creating tuple with one item](#creating-tuple-with-one-item)\n    - [Deleting a tuple](#deleting-a-tuple)\n- [Pandas](#pandas)\n  - [Data Structures in Pandas](#data-structures-in-pandas)\n- [NLTK](#nltk)\n- [Errors and Exceptions](#errors-and-exceptions)\n  - [Exceptions](#exceptions)\n- [Python Snippets](#python-snippets)\n  - [Anagrams](#anagrams)\n  - [Memory](#memory)\n  - [Print a string N times](#print-a-string-n-times)\n  - [Chunk](#chunk)\n  - [Get vowels](#get-vowels)\n  - [Length of Last Word in a string](#length-of-last-word-in-a-string)\n  - [Valid Palindrome](#valid-palindrome)\n  - [Check Lowercase](#check-lowercase)\n  - [Count Negatives in a sorted Matrix](#count-negatives-in-a-sorted-matrix)\n  - [Write to file](#write-to-file)\n  - [Median of given array](#median-of-given-array)\n  - [Even or Odd](#even-or-odd)\n  - [Palindrome](#palindrome)\n\n\u003c!-- vim-markdown-toc --\u003e\n\n## Main\n\n```python\nif __name__ == '__main__':    # If file is not imported, this will be executed\n    main()\n```\n\n## Basic and necessary commands needed to execute a well-defined python code at the command line.\n\n### Opening a python shell.\n\n```python\n$ python3\n```\n\n### Installing a package\n\n```python\n$ pip3 install \u003cpackage-name\u003e\n```\n\n### Running a python script\n\n```python\n$ python3 \u003cfilename\u003e.py\n```\n\n### Calculating the time of execution\n\n```python\n$ time python3 \u003cfilename\u003e.py\n```\n\n### Importing a py script\n\n```python\nimport \u003cfilename\u003e\n```\n\n## Getting started with the language\n\n### Basic I/O\n\n- Input\n\n```python\ninput(\"Input: \")\n```\n\n- Output\n  Python automatically points the cursor to a new line.\n  We need not specify explicitly.\n\n```python\nprint(\"Output\")\n```\n\n### Variables and Constants\n\nIn python, we need not specify the datatype of a variable.\nThe interpreter interprets the value and assigns a suitabe datatype for that.\n\n```python\nnumber = 0\norg = \"GitHub\"\n```\n\n### Conditional Statements\n\nIn python, we do not write a block of code in a pair of paranthesis.\nWe write it after `:` followed by an indentation in the next line.\n\nThe conditional statements include `if`, `if-else`, `nested if` and so on...\n\n```python\nx,y = 0,1\nif x \u003c y:\n  print(\"x is less than y\")\nelse:\n  print(\"x is not less than y\")\n```\n\nNote that the colon (:) following \u003cexpr\u003e is required.\nSimilarly, the `nested if` also works.\n\n### Iterative statements\n\nAs other programming languages, we have\n\n- `for loop`\n\n```python\nfor i in range(5):\n  print(i)\n```\n\nThe `range` function starts off with 0 till the number(excluded).\n\n- `while loop`\n\n```python\ni=0\nwhile(i \u003c 10):\n  print(\"{} is less than 10\".format(i))\n  i += 1\n```\n\n### String formatting\n\nThere are a few ways to format a string in Python.\n\n- Using the `%` operator\n  Strings can be formatted using the % operator:\n\n```python\n\u003e\u003e\u003e foo = 'world'\n\u003e\u003e\u003e 'Hello %s' % foo\n'Hello world'\n```\n\nTo subsitute multiple instances, wrap the right hand side in a Tuple:\n\n```python\n\u003e\u003e\u003e foo = 'James'\n\u003e\u003e\u003e bar = 'Nancy'\n\u003e\u003e\u003e 'Hi, my name is %s and this is %s' % (foo, bar)\n'Hi, my name is James and this is Nancy'\n```\n\nYou can also do variable subsitutions with a dictionary:\n\n```python\n\u003e\u003e\u003e dict = { \"name\": \"Mike\", \"country\": \"Canada\" }\n\u003e\u003e\u003e 'I am %(name)s and I am from %(country)s' % dict\n'I am Mike and I am from Canada'\n```\n\n- `.format()`\n\nIntroduced in Python 3, but is available in Python 2.7+\n\n```python\n\u003e\u003e\u003e 'Hello {}'.format('world')\n'Hello world'\n```\n\nSimilar to the above, subsitutions can be referred by name:\n\n```python\n\u003e\u003e\u003e 'Hi {name}, your total is ${total}'.format(name='Bob', total=5.50)\n'Hi Bob, your total is $5.5'\n```\n\n- f-Strings\n\nAvailable in Python 3.6+. Works similar to the above, but is more powerful as arbitrary Python expressions can be embedded:\n\n```python\n\u003e\u003e\u003e a = 5\n\u003e\u003e\u003e b = 10\n\u003e\u003e\u003e f'Five plus ten is {a + b} and not {2 * (a + b)}.'\n'Five plus ten is 15 and not 30.'\n```\n\n## Function\n\nFunction is a block of code which runs when it is called.  \nFunctions are declared using the `def` keyword. Function name must be a valid identifier.  \nFunction arguments can be literal values, variables (valid identifiers), and expressions.\n\n```python\ndef sum(a, b) :\n\treturn a + b\n\ndef subtract(a, b) :\n\treturn a - b\n\ndef getPerson(name, age) :\n\tperson = { \"name\": name, \"age\": age }\n\treturn person\n```\n\n### Function Call\n\nFunctions can be called by passing the arguments according to the declaration.\n\n```python\na = 20\nb = 50\nc = sum(a, b)\nd = sum(b, 50)\ne = subtract(b, a)\np = getPerson(\"Joe\", 25)\n\n# OUTPUT:\nprint( \"Sum - {} plus {}: {}\" . format( a, b, c ) ) # Sum - 20 plus 50: 70\nprint( \"Sum - {} plus 50: {}\" . format( b, d ) ) # Sum - 50 plus 50: 100\nprint( \"Subtraction - {} minus {}: {}\" . format( b, a, e ) ) # Subtraction - 50 minus 20: 30\nprint( \"Person - {}\" . format( p ) ) # Person - {'name': 'Joe', 'age': 75}\n```\n\n### Function as Object\n\nAll data in a Python is represented by objects. There’s nothing particularly special about functions. They’re also just objects.\n\n```python\ndef yell(text):                   # Define function yell\n\treturn text.upper() + '!'\n\n\n\u003e\u003e\u003e bark = yell                   # Declare an object \"bark\" that contains the function \"yell\"\n\u003e\u003e\u003e bark('woof')                  # You could now execute the \"yell\" function object by calling bark\n'WOOF!'\n```\n\n### Nested Function\n\nFunctions can be defined inside other functions. These are often called nested functions or inner functions.\n\n```python\ndef speak(text):                          # Define function speak\n\tdef wisper(t):                    # Function wisper does not exist outside speak\n\t\treturn t.lower() + '...'\n\treturn wisper(text)\n\n\n\u003e\u003e\u003e speak('Hello, World')\n'hello, world...'\n```\n\n## Lambda\n\nThe lambda keyword in Python provides a shortcut for declaring small anonymous functions.\n\n```python\n\u003e\u003e\u003e add = lambda x, y: x + y\n\u003e\u003e\u003e add(5, 3)\n8\n```\n\nYou could declare the same add function with the def keyword, but it would be slightly more verbose:\n\n```python\ndef add(x, y):\n\treturn x + y\n\u003e\u003e\u003e add(5, 3)\n8\n```\n\n## Data Structures\n\n### Lists\n\n```python\n# These are all inplace operations returns a None value\n\n\u003clist\u003e.append(\u003cele\u003e)            # Add an element to the end of the list\n\u003clist\u003e.sort()                   # Sorts the given list\n\u003clist\u003e.pop([\u003cele\u003e])             # Removes the last element if no argument else removes the element at the index given\n\u003clist\u003e.clear()                  # Makes it an empty list\n\u003clist\u003e.insert(\u003cindex\u003e, \u003cele\u003e)   # Adds the element before the index\n\u003clist\u003e.extend(\u003citerator\u003e)\n\u003clist\u003e.reverse()                # Reverse a given list\n```\n\n```python\n# These are not inplace operations and has a return value\n\n\u003clist\u003e.copy()                   # Makes a shallow copy of the list\n\u003clist\u003e.index(\u003cele\u003e)             # Returns the index of the given element\n\u003clist\u003e.count(\u003cele\u003e)             # Returns the number of occurrences of the element\n```\n\n### Dictionaries\n\nkey-value pairs.\n\n```python\n\u003cdict\u003e = {'Google':100, 'Facebook':80, 'Apple':90}\n\n\u003cdict\u003e['Amazon'] = 85                           # Adding a key along with the value\n\n# Accessing the dictionary\nfor key in \u003cdict\u003e:\n  print(\"{key} -\u003e {x}\".format(key=key, x=\u003cdict\u003e[key]))\n\n\u003cdict\u003e.keys()                                   # Print all the keys\n\u003cdict\u003e.values()                                 # Print all the values\nlen(\u003cdict\u003e)                                     # Find the length of the dictionary\n\u003cdict\u003e.pop(\u003ckey\u003e)                               # Removes the item with the specified key name\n\u003cdict\u003e.copy()                                   # Make a copy of a dictionary\n```\n\nA dictionary can also contain many dictionaries, this is called nested dictionaries.\n\n### Tuple\n\nA tuple is a collection which is ordered, indexed and unchangeable. In Python tuples are written with round brackets.\n\n```python\nthis_tuple = ('books', 'pen', 'paper')          # Defined a tuple\n\n# Accessing Tuple Items\nprint(this_tuple[2])                            # paper\n```\n\n#### Changing Tuple Values\n\nTuples are immutable, which means they cant to changed once they are created.  \nIf a value inside tuple needs to be changed, the tuple must be converted to a list.  \nNewly created list can be converted back to tuple after updating changes.\n\n```python\ndesk_tuple = (\"pen stand\", \"plant\", \"marker\")\ndesk_list = list(desk_tuple)\ndesk_list[2] = \"highlighter\"\ndesk_tuple = tuple(desk_list)\n\nprint(desk_tuple[2])                            # highlighter\n```\n\n#### Creating tuple with one item\n\nTo create a tuple with only one item, you have to add a comma after the item, otherwise Python will not recognize it as a tuple.\n\n```python\nthis_tuple = (\"Python\",)\nprint(type(this_tuple))                         # tuple\n\n# NOT a tuple\nthis_tuple = (\"Python\")\nprint(type(this_tuple))                         # str\n```\n\n#### Deleting a tuple\n\nTuples are unchangeable, so you cannot remove items from it, but you can delete the tuple completely:\n\n```python\nthis_tuple = ('books', 'pen', 'paper')\ndel this_tuple\nprint(this_tuple)                               # ERROR: this_tuple is not defined\n## Third party libraries\n```\n\n## Pandas\n\n```shell\n$ sudo pip3 install pandas          # Installing pandas module in Ubuntu\n```\n\n```python\nimport pandas as pd\n\n\u003cdataframe\u003e.head([\u003cn\u003e])             # Display the first n rows of the Dataframe, default value is 5 rows\n\u003cdataframe\u003e.tail([\u003cn\u003e])             # Display the last n rows of the Dataframe, default value is 5 rows\n\u003cdataframe\u003e.info()                  # Gives some information like, row and column datatypes, non-null count, and memory usage\n\u003cdataframe\u003e.describe()              # Provides some descriptive statistics about the numerical rows in the dataframe\n```\n\n### Data Structures in Pandas\n\nIn Pandas, total of three data structures are used\n\n- Series\n- DataFrame\n- Panel\n\n```python\n#Series\nsr = pd.Series([100, 200, 300, 400],\nindex=[\"red\", \"green\", \"yello\", \"black\"])\nprint(sr)\nprint(sr.values)\nprint(sr.index)\n\n#A series class has a structure that allows you to give values in one-dimensional arrays an index that corresponds to each value.\n```\n\n```python\n#DataFrame\nvalues = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nindex = ['one', 'two', 'three']\ncolumns = ['A', 'B', 'C']\n\ndf = pd.DataFrame(values, index=index, columns=columns)\nprint(df)\nprint(df.index)\nprint(df.columns)\nprint(df.values)\n#DataFrame passes a two-dimensional list as a parameter. Compared to a series, a data frame is added up to columns, consisting of columns, indexes, and values.\n```\n\n## NLTK\n\n```shell\n$ sudo pip3 install nltk                    # Installing nltk module in Ubuntu\n```\n\n```python\nimport nltk\n\n# Before trying any function download the word list\nnltk.download('punkt')\nnltk.download('averaged_perceptron_tagger')\n```\n\n## Errors and Exceptions\n\nProgram stops working on error Python raises exceptions when it encounter error.  \nTo avoid this, `try-catch` blocks are used.\n\n### Exceptions\n\nNo syntax errors found, program starts execution.  \nErrors detected during execution are called exceptions.  \nUse try: except: finally: to catch and handle the exceptions.  \nUse try: except: finally: to avoid program termination on exceptions.  \nUse try: except: else: instead of try: except: finally: for alternate flows.  \nMultiple except can be use to catch the exceptions.\n\n```python\na = 10 * (1/0)\n\n# Throws division by zero exception and terminate the program\n# Traceback (most recent call last):\n  File \"\", line 1, in\n    a = 10 * (1/0)\n# ZeroDivisionError: division by zero\n\n# Updated Program - Valid - Try: Except: Finally\nb = 10\ntry:\n    a = 10 * (1/b)\n    print( \"a = {}\" .format( a ) )\nexcept:\n    print( \"Caught divide by zero - while getting a\" )\n    print( \"Execute on error - b must be non-zero value\" )\nfinally:\n    print( \"Execute Always - normal and exceptional flow\" )\n\n# OUTPUT\na = 1.0\nExecute Always - normal and exceptional flow\n\n## Updated Program - Error - Try: Except: Finally\nb = 0\ntry:\n    a = 10 * (1/b)\n    print( \"a = {}\" .format( a ) )\nexcept:\n    print( \"Caught divide by zero - while getting a\" )\n    print( \"Execute on error - b must be non-zero value\" )\nelse:\n    print( \"Alternate to exceptional flow\" )\n\n# Output\nCaught divide by zero - while getting a\nExecute on error - b must be non-zero value\nExecute Always - normal and exceptional flow\n```\n\n## Python Snippets\n\n### Anagrams\n\nAn anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.\n\n```python\nfrom collections import Counter\ndef anagram(first, second):\n    return Counter(first) == Counter(second)\nanagram(\"abcd3\", \"3acdb\") # True\n```\n\n### Memory\n\nThis snippet can be used to check the memory usage of an object.\n\n```python\nimport sys\n\nvariable = 30\nprint(sys.getsizeof(variable)) # 24\n```\n\n### Print a string N times\n\nThis snippet can be used to print a string n times without having to use loops to do it.\n\n```python\nn = 2\ns =\"Programming\"\nprint(s * n) # ProgrammingProgramming\n```\n\n### Chunk\n\nThis method chunks a list into smaller lists of a specified size.\n\n```python\ndef chunk(list, size):\n    return [list[i:i+size] for i in range(0,len(list), size)]\n```\n\n### Get vowels\n\nThis method gets vowels (‘a’, ‘e’, ‘i’, ‘o’, ‘u’) found in a string.\n\n```python\ndef get_vowels(string):\n    return [each for each in string if each in 'aeiou']\nget_vowels('foobar') # ['o', 'o', 'a']\nget_vowels('gym') # []\n```\n\n### Length of Last Word in a string\n\nThis method gets the length of last word in a given string.\n\n```python\ndef lengthOfLastWord(self, s: str) -\u003e int:\n        if(s.split()):\n            lst=s.split()\n            last=lst[-1]\n            return len(last)\n        return 0\n```\n\n### Valid Palindrome\n\nThis method returns a bool value specifying whether a string is palindromic or not.\n\n```python\ndef isPalindrome(self, s: str) -\u003e bool:\n        s = [ x.lower() for x in s if x.isalnum() ]\n        return s == s[::-1]\n```\n\n### Check Lowercase\n\nThis method checks if a string is in lower case or not.\n\n```python\ndef toLowerCase(self, str):\n        \"\"\"\n        :type str: str\n        :rtype: str\n        \"\"\"\n        return str.lower()\n```\n\n### Count Negatives in a sorted Matrix\n\nThis method returns the count of negative numbers in a sorted matrix.\n\n```python\ndef countNegatives(self, grid: List[List[int]]) -\u003e int:\n        count = 0\n        for num in grid:\n            for n in num:\n                if n \u003c 0:\n                    count += 1\n        return count\n```\n\n### Write to file\n\nThis method takes in the `name of file` and `content` then write the content into the file. If the file doesn't exist then it creates the file.\n\n```python\ndef write_to_file(filename, content):\n  try:\n    with open(filename, \"w+\") as f:\n      f.write(content)\n    print(\"Written to file successfully.\")\n  except Exception as e:\n    print(\"Failed to write to file with error: \")\n    print(e)\n```\n\n### Median of given array\n\nThis method returns the median of the given list/array as an output.\n\n```python\nimport statistics\ndef median(arr):\n    print(statistics.median(arr))\n```\n\n### Even or Odd\n\nThis function determines the given number is even or odd.\n\n```python\ndef find_Evenodd(num):\n\n    if(num%2==0):\n        print(num,\" Is an even\")\n    else:\n        print(num,\" is an odd\")\n```\n\n### Palindrome\n\nThis function returns \"yes\" if given string is a palindrome, else \"no\". Palindrome is a string whose reverse is the string itself.\n\n```python\ndef isPalindrome(s):\n    if (s == s[::-1]):\n        return \"yes\"\n    else:\n        return \"no\"\n```\n\n\t\t\t\n\t\t\t\n## Further reading-\n____\n1) [Introduction and Installation](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%201)\n2) [Why Python?](https://dev.to/shivashishthak3/top-reasons-why-learning-python-is-the-best-decision-392k) \n3) [Statements, Comments and Indentation](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%202)\n4) [Operators and If-elif-else](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%203)\n5) [The for loop](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%204)\n6) [Summary Interview questions](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%205)\n7) [The While Loop and more questions](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%206)\n8) [Exercises and coding challenges⚔️](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%207)\n9) [Unicode in Python](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%208)\n10) [Summary of the week and exercises.](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%209)\n11) [Lists in Python](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2010)\n12) [Multidimensional lists and Tuples](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2011)\n13) [Basic algorithms](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2012)\n14) [Stack implementation](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2013)\n15) [Basic Exception and error handling using try-except](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2014)\n16) [More about try-except](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2015)\n17) [Fractal lists and other questions](https://github.com/Aatmaj-Zephyr/Learning-Python/blob/main/Basic/Day%2016/README.md)\n18) [Intro to DSA](https://www.geeksforgeeks.org/introduction-to-data-structures-10-most-commonly-used-data-structures/) ^^\n19) [Insertion sort](https://github.com/Aatmaj-Zephyr/Learning-Python/blob/main/Basic/Day%2017/README.md)\n20) [Dictionaries in Python](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2018)\n21) [Practicing Dictionary exercises](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2019)\n22) [HashTables via Dictionaries](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2020)\n23) [Summary of the week and dictionary exercises.](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2021)\n24) [String Methods Part-1](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2022)\n25) [String Methods Part-2](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2023)\n26) [String Methods Part-3](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2024)\n27) [Summary of the basic course.](https://github.com/Aatmaj-Zephyr/Learning-Python/tree/main/Basic/Day%2025)\n\n\t\t\t\n### Thanks to All contributors\n\t\t\t\n\u003ca href=\"https://github.com/Cheatsheet-lang/Python/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=Cheatsheet-lang/Python\" /\u003e\n\u003c/a\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheatsheet-lang%2Fpython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheatsheet-lang%2Fpython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheatsheet-lang%2Fpython/lists"}