Skip to content  [ ![geeksforgeeks](https://media.geeksforgeeks.org/gfg-gg-
logo.svg) ](https://www.geeksforgeeks.org/)

  * Tutorials  __
    * Python Tutorial  __
      * [ Taking Input in Python ](https://www.geeksforgeeks.org/taking-input-in-python/?ref=outind)
      * [ Python Operators ](https://www.geeksforgeeks.org/python-operators/?ref=outind)
      * Python Data Types  __
        * [ Python Numbers ](https://www.geeksforgeeks.org/python-numbers/?ref=outind)
        * [ Python String ](https://www.geeksforgeeks.org/python-string/?ref=outind)
        * [ Python Lists ](https://www.geeksforgeeks.org/python-lists/?ref=outind)
        * [ Python Tuples ](https://www.geeksforgeeks.org/python-tuples/?ref=outind)
        * [ Sets in Python ](https://www.geeksforgeeks.org/sets-in-python/?ref=outind)
        * [ Python Dictionary ](https://www.geeksforgeeks.org/python-dictionary/?ref=outind)
      * Python Loops and Control Flow  __
        * [ Python If Else ](https://www.geeksforgeeks.org/python-if-else/?ref=outind)
        * [ Python For Loops ](https://www.geeksforgeeks.org/python-for-loops/?ref=outind)
        * [ Python While Loops ](https://www.geeksforgeeks.org/python-while-loop/?ref=outind)
        * [ Python Breaks ](https://www.geeksforgeeks.org/python-break-statement/?ref=outind)
        * [ Python Continue Statement ](https://www.geeksforgeeks.org/python-continue-statement/?ref=outind)
        * [ Python Pass Statement ](https://www.geeksforgeeks.org/python-pass-statement/?ref=outind)
      * [ Python Functions ](https://www.geeksforgeeks.org/python-functions/?ref=outind)
      * [ Python OOPS Concept ](https://www.geeksforgeeks.org/python-oops-concepts/?ref=outind)
      * Python Data Structures  __
        * [ Python DSA ](https://www.geeksforgeeks.org/python-data-structures-and-algorithms/?ref=outind)
        * [ Linked List ](https://www.geeksforgeeks.org/python-linked-list/?ref=outind)
        * [ Stack ](https://www.geeksforgeeks.org/stack-in-python/?ref=outind)
        * [ Queue ](https://www.geeksforgeeks.org/queue-in-python/?ref=outind)
        * [ Tree ](https://www.geeksforgeeks.org/binary-tree-data-structure/?ref=outind)
        * [ Heap ](https://www.geeksforgeeks.org/introduction-to-heap-data-structure-and-algorithm-tutorials/?ref=outind)
        * [ Hashing ](https://www.geeksforgeeks.org/introduction-to-hashing-data-structure-and-algorithm-tutorials/?ref=outind)
        * [ Graph ](https://www.geeksforgeeks.org/introduction-to-graphs-data-structure-and-algorithm-tutorials/?ref=outind)
        * [ Sets ](https://www.geeksforgeeks.org/introduction-to-set-data-structure-and-algorithm-tutorials/?ref=outind)
        * [ Map ](https://www.geeksforgeeks.org/introduction-to-map-data-structure-and-algorithm-tutorials/?ref=outind)
        * [ Advance Data Structure ](https://www.geeksforgeeks.org/advanced-data-structures/?ref=outind)
        * [ Sorting Algorithms ](https://www.geeksforgeeks.org/sorting-algorithms-in-python/?ref=outind)
        * [ Searching Algorithms ](https://www.geeksforgeeks.org/searching-algorithms/?ref=outind)
      * [ Python Exception Handling ](https://www.geeksforgeeks.org/python-exception-handling/?ref=outind)
      * [ Python File Handling ](https://www.geeksforgeeks.org/file-handling-python/?ref=outind)
      * Python Exercises  __
        * [ Python List Exercise ](https://www.geeksforgeeks.org/python-list-exercise/?ref=outind)
        * [ Python String Exercise ](https://www.geeksforgeeks.org/python-string-exercise/?ref=outind)
        * [ Python Tuple Exercise ](https://www.geeksforgeeks.org/python-tuple-exercise/?ref=outind)
        * [ Python Dictionary Exercise ](https://www.geeksforgeeks.org/python-dictionary-exercise/?ref=outind)
        * [ Python Set Exercise ](https://www.geeksforgeeks.org/python-set-exercise/?ref=outind)
        * [ Python Design Patterns ](https://www.geeksforgeeks.org/python-design-patterns/?ref=outind)
        * [ Python Programming Examples ](ht