Skip to content
geeksforgeeks
  • Courses
    • For Working Professionals
      • DevOps(Live)
      • Data Structure & Algorithm Classes (Live)
      • System Design (Live)
      • Java Backend Developer (Live)
      • Full Stack Development with React & Node JS (Live)
      • Complete Data Science Program
      • Data Structure & Algorithm-Self Paced(C++/JAVA)
      • Data Structures & Algorithms in Python
      • Explore More Live Courses
    • For Students
      • Competitive Programming (Live)
      • Interview Preparation Course
      • Data Structure & Algorithm-Self Paced(C++/JAVA)
      • Data Structures & Algorithms in Python
      • Data Science (Live)
      • Full Stack Development with React & Node JS (Live)
      • GATE CS 2023 Test Series
      • OS DBMS CN for SDE Interview Preparation
      • Explore More Self-Paced Courses
    • Programming Languages
      • C++ Programming - Beginner to Advanced
      • Java Programming - Beginner to Advanced
      • C Programming - Beginner to Advanced
      • Python Foundation
      • JavaScript Foundation
    • Web Development
      • Full Stack Development with React & Node JS(Live)
      • Java Backend Development(Live)
      • React JS (Basic to Advanced)
      • JavaScript Foundation
    • Machine Learning and Data Science
      • Complete Data Science Program(Live)
      • Mastering Data Analytics
    • School Courses
      • CBSE Class 12 Computer Science
      • School Guide
    • All Courses
  • Tutorials
    • DSA
    • Data Structures
      • Arrays
      • Linked List
      • Stack
      • Queue
      • Binary Tree
      • Binary Search Tree
      • Heap
      • Hashing
      • Graph
      • Advanced Data Structure
      • Matrix
      • Strings
      • All Data Structures
    • Algorithms
      • Analysis of Algorithms
        • Asymptotic Analysis
        • Worst, Average and Best Cases
        • Asymptotic Notations
        • Little o and little omega notations
        • Lower and Upper Bound Theory
        • Analysis of Loops
        • Solving Recurrences
        • Amortized Analysis
        • What does 'Space Complexity' mean ?
        • Pseudo-polynomial Algorithms
        • Polynomial Time Approximation Scheme
        • A Time Complexity Question
      • Searching Algorithms
      • Sorting Algorithms
      • Graph Algorithms
      • Pattern Searching
      • Geometric Algorithms
      • Mathematical
      • Bitwise Algorithms
      • Randomized Algorithms
      • Greedy Algorithms
      • Dynamic Programming
      • Divide and Conquer
      • Backtracking
      • Branch and Bound
      • All Algorithms
    • Interview Corner
      • Company Preparation
      • Top Topics
      • Practice Company Questions
      • Interview Experiences
      • Experienced Interviews
      • Internship Interviews
      • Competitive Programming
      • Design Patterns
      • System Design Tutorial
      • Multiple Choice Quizzes
    • Languages
      • C
      • C++
      • Java
      • Python
      • JavaScript
      • PHP
      • C#
      • SQL
      • Scala
      • Perl
      • Go Language
      • Kotlin
    • Web Development
      • HTML
      • CSS
      • JavaScript
      • PHP
      • CSS Frameworks
        • Bootstrap
        • Tailwind CSS
        • Foundation CSS
        • Materialize CSS
        • Bulma
        • Pure CSS
        • Primer CSS
        • Blaze UI
        • Semantic UI
      • JavaScript Frameworks
        • AngularJS
        • Angular PrimeNG
        • Angular ngx Bootstrap
        • NodeJS
        • Express.js
      • JavaScript Libraries
        • jQuery
        • jQuery Mobile
        • jQuery UI
        • jQuery EasyUI
        • jQWidgets
        • ReactJS
        • React Bootstrap
        • React Rebass
        • React Desktop
        • React Suite
        • ReactJS Evergreen
        • ReactJS Reactstrap
        • Ant Design
        • BlueprintJS
        • p5.js
        • Lodash
        • TensorFlow.js
        • Moment.js
        • Collect.js
      • WordPress
      • JSON
    • School Learning
      • School Programming
      • Mathematics
        • Number System
        • Algebra
        • Trigonometry
        • Statistics
        • Probability
        • Geometry
        • Mensuration
        • Calculus
      • Maths Notes (Class 8-12)
        • Class 8 Notes
        • Class 9 Notes
        • Class 10 Notes
        • Class 11 Notes
        • Class 12 Notes
      • NCERT Solutions
        • Class 8 Maths Solution
        • Class 9 Maths Solution
        • Class 10 Maths Solution
        • Class 11 Maths Solution
        • Class 12 Maths Solution
      • RD Sharma Solutions
        • Class 8 Maths Solution
        • Class 9 Maths Solution
        • Class 10 Maths Solution
        • Class 11 Maths Solution
        • Class 12 Maths Solution
      • Physics Notes (Class 8-11)
        • Class 8 Notes
        • Class 9 Notes
        • Class 10 Notes
        • Class 11 Notes
      • Chemistry Notes
        • Class 8 Notes
        • Class 9 Notes
        • Class 10 Notes
      • Business Studies (Class 11th)
      • Business Studies (Class 12th)
      • Accountancy (Class 12th)
      • Statistics for Economics (Class 11th)
    • ML & Data Science
      • Machine Learning
      • Data Science
    • CS Subjects
      • Mathematics
      • Operating System
      • DBMS
      • Computer Networks
      • Computer Organization and Architecture
      • Theory of Computation
      • Compiler Design
      • Digital Logic
      • Software Engineering
    • GATE
      • GATE 2023 Test Series
      • GATE Computer Science Notes
      • Last Minute Notes
      • GATE CS Solved Papers
      • GATE CS Original Papers and Official Keys
      • GATE CS 2023 Syllabus
      • Important Topics for GATE CS
      • GATE 2023 Important Dates
    • Software Designs
      • Software Design Patterns
      • System Design Tutorial
    • GFG Sheets
      • Web Dev Cheat Sheets
        • HTML Cheat Sheet
        • CSS Cheat Sheet
        • Bootstrap Cheat Sheet
        • JS Cheat Sheet
        • jQuery Cheat Sheet
        • Angular Cheat Sheet
      • Company-Wise SDE Sheets
        • Facebook SDE Sheet
        • Amazon SDE Sheet
        • Apple SDE Sheet
        • Netflix SDE Sheet
        • Google SDE Sheet
        • Wipro Coding Sheet
        • Infosys Coding Sheet
        • TCS Coding Sheet
        • Cognizant Coding Sheet
        • HCL Coding Sheet
      • DSA Sheets
        • SDE Sheet
        • FAANG Coding Sheet
        • Love Babbar Sheet
        • Mass Recruiter Sheet
        • Product-Based Coding Sheet
        • Company-Wise Preparation Sheet
        • Array Sheet
        • String Sheet
        • Tree Sheet
        • Graph Sheet
        • DP Sheet
    • CS Exams/PSUs
      • ISRO
        • ISRO CS Original Papers and Official Keys
        • ISRO CS Solved Papers
        • ISRO CS Syllabus for Scientist/Engineer Exam
      • UGC NET
        • UGC NET CS Notes Paper II
        • UGC NET CS Notes Paper III
        • UGC NET CS Solved Papers
    • Student
      • Campus Ambassador Program
      • School Ambassador Program
      • Project
      • Geek of the Month
      • Campus Geek of the Month
      • Placement Course
      • Competitive Programming
      • Testimonials
      • Student Chapter
      • Geek on the Top
      • Internship
      • Careers
    • UPSC
      • Geography Notes
      • History Notes
      • Science & Tech. Notes
      • Ethics Notes
      • Polity Notes
      • Economics Notes
      • UPSC Previous Year Papers
    • SSC CGL
      • SSC CGL Syllabus
      • General Studies
      • English
      • Reasoning
      • Subjectwise Practice Papers
      • Previous Year Papers
    • Banking Exams
      • SBI Clerk
        • SBI Clerk Syllabus
        • General Awareness
        • English
        • Quantitative Aptitude
        • Reasoning Ability
        • SBI Clerk Practice Papers
      • SBI PO
        • SBI PO Syllabus
        • General Awareness
        • English
        • Quantitative Aptitude
        • Reasoning Ability
        • Previous Year Papers
        • SBI PO Practice Papers
      • IBPS PO
        • IBPS PO 2022 Syllabus
        • English Notes
        • Reasoning Notes
        • Previous Year Papers
        • Mock Question Papers
      • IBPS Clerk
        • IBPS Clerk Syllabus
        • English Notes
        • Previous Year Papers
  • Jobs
    • Apply for a Job
    • Apply through Jobathon
    • Post a Job
    • Hire through Jobathon
  • Practice
    • All DSA Problems
    • Problem of the Day
    • GFG SDE Sheet
    • Curated DSA Lists
      • Top 50 Array Problems
      • Top 50 String Problems
      • Top 50 Tree Problems
      • Top 50 Graph Problems
      • Top 50 DP Problems
  • Contests
    • GFG Weekly Coding Contest
    • Job-A-Thon: Hiring Challenge
    • BiWizard School Contest
    • All Contests and Events
  • Home
  • Courses
    • GBlog
    • Puzzles
    • What's New ?
    • Data Structures and Algorithms
    • Interview Preparation
    • Data Science
    • Topic-wise Practice
    • C
    • C++
    • Java
    • Python
    • Latest Blogs
    • Competitive Programming
    • JavaScript
    • Machine Learning
    • Write & Earn
    • Web Development
    • Puzzles
    • Projects
    Related Articles

    Table of Contents

      Write an Article
      • Write Articles
      • Pick Topics to write
      • Guidelines to Write
      • Get Technical Writing Internship
    • Write an Interview Experience
    • Introduction
      • Python Programming Language
      • Introduction To PYTHON
      • Python Language advantages and applications
      • Download and Install Python 3 Latest Version
      • Python 3 basics
      • Python Keywords
      • Namespaces and Scope in Python
      • Statement, Indentation and Comment in Python
      • How to assign values to variables in Python and other languages
      Input/Output
      • Taking input in Python
      • Taking input from console in Python
      • Taking multiple inputs from user in Python
      • Python | Output using print() function
      • How to print without newline in Python?
      • Python end parameter in print()
      • Python | sep parameter in print()
      • Python | Output Formatting
      Operators
      • Python Operators
      • Ternary Operator in Python
      • Division Operators in Python
      • Operator Overloading in Python
      • Any All in Python
      • Operator Functions in Python | Set 1
      • Operator Functions in Python | Set 2
      • Difference between == and is operator in Python
      • Python Membership and Identity Operators
      Data Types
      • Python | Set 3 (Strings, Lists, Tuples, Iterations)
      • Python String
      • Python Lists
      • Python Tuples
      • Python Sets
      • Python Dictionary
      • Python Arrays
      Control Flow
      • Control Flow in Python
      • Chaining comparison operators in Python
      • Python For Loops
      • Python While Loop
      • Python break statement
      • Python Continue Statement
      • Python pass Statement
      • Looping Techniques in Python
      Functions
      • Python Functions
      • *args and **kwargs in Python
      • When to use yield instead of return in Python?
      • Generators in Python
      • Python lambda
      • Global and Local Variables in Python
      • Global keyword in Python
      • First Class functions in Python
      • Python Closures
      • Decorators in Python
      • Decorators with parameters in Python
      • Memoization using decorators in Python
      Python OOP
      • Python Classes and Objects
      • Constructors in Python
      • Destructors in Python
      • Inheritance in Python
      • Types of inheritance Python
      • Encapsulation in Python
      • Polymorphism in Python
      • Class or Static Variables in Python
      • Class method vs Static method in Python
      Exception Handling
      • Python Exception Handling
      • Python Try Except
      • Errors and Exceptions in Python
      • Built-in Exceptions in Python
      • User-defined Exceptions in Python with Examples
      • NZEC error in Python
      File handling
      • File Handling in Python
      • Open a File in Python
      • How to read from a file in Python
      • Writing to file in Python
      • Python append to a file
      Python Regex
      • Regular Expression in Python with Examples | Set 1
      • Regular Expressions in Python – Set 2 (Search, Match and Find All)
      • Python Regex: re.search() VS re.findall()
      • Verbose in Python Regex
      • Password validation in Python
      Python Collections
      • Python Collections Module
      • Counters in Python | Set 1 (Initialization and Updation)
      • OrderedDict in Python
      • Defaultdict in Python
      • ChainMap in Python
      • Namedtuple in Python
      • Deque in Python
      • Heap queue (or heapq) in Python
      • Collections.UserDict in Python
      • Collections.UserList in Python
      • Collections.UserString in Python
      Python Advance
      • OS Module in Python with Examples
      • Functional Programming in Python
      • Metaprogramming with Metaclasses in Python
      • Abstract Classes in Python
      • Multithreading in Python | Set 1
      • Multithreading in Python | Set 2 (Synchronization)
      • Multiprocessing in Python | Set 1 (Introduction)
      • Multiprocessing in Python | Set 2 (Communication between processes)
      • Socket Programming in Python
      • Socket Programming with Multi-threading in Python
      Python NumPy
      • NumPy Tutorial
      • Python Numpy
      • Numpy | ndarray
      • Numpy | Array Creation
      • Numpy | Indexing
      • Basic Slicing and Advanced Indexing in NumPy Python
      • Numpy | Data Type Objects
      • Numpy | Iterating Over Array
      • Numpy | Binary Operations
      • Numpy | Mathematical Function
      • Numpy | String Operations
      • Numpy | Linear Algebra
      • Numpy | Sorting, Searching and Counting
      • Random sampling in numpy | randint() function
      • Random sampling in numpy | random_sample() function
      • Random sampling in numpy | ranf() function
      • Random sampling in numpy | random_integers() function
      • Numpy ufunc | Universal functions
      Python Pandas
      • Pandas Tutorial
      • Introduction to Pandas in Python
      • How to Install Python Pandas on Windows and Linux?
      • Python | Pandas DataFrame
      • Creating a Pandas DataFrame
      • Python | Pandas Series
      • Creating a Pandas Series
      • Python | Pandas Dataframe/Series.head() method
      • Python | Pandas Dataframe.describe() method
      • Dealing with Rows and Columns in Pandas DataFrame
      • Python | Pandas Extracting rows using .loc[]
      • Python | Extracting rows using Pandas .iloc[]
      • Indexing and Selecting Data with Pandas
      • Boolean Indexing in Pandas
      • Pandas GroupBy
      • Python | Pandas Merging, Joining, and Concatenating
      • Python | Working with date and time using Pandas
      • Python | Pandas Working With Text Data
      • Python | Read csv using pandas.read_csv()
      • Python | Working with Pandas and XlsxWriter | Set – 1
      Python Django
      • Django Tutorial
      • Django Basics
      • Django Introduction and Installation
      • Django Project MVT Structure
      • How to Create a Basic Project using MVT in Django ?
      • How to Create an App in Django ?
      • Django Forms
      • Render HTML Forms (GET & POST) in Django
      • Django form field custom widgets
      • Django ModelForm – Create form from Models
      • Django Formsets
      • Django ModelFormSets
      • Django Templates
      • Views In Django | Python
      • Django CRUD (Create, Retrieve, Update, Delete) Function Based Views
      • Class Based Generic Views Django (Create, Retrieve, Update, Delete)
      • Django Models
      • Django ORM – Inserting, Updating & Deleting Data
      • Django Basic App Model – Makemigrations and Migrate
      Python JSON
      • Python JSON
      • Working With JSON Data in Python
      • Read, Write and Parse JSON using Python
      • Append to JSON file using Python
      • Serializing JSON data in Python
      • Deserialize JSON to Object in Python
      Python CSV
      • Working with csv files in Python
      • Reading CSV files in Python
      • Writing CSV files in Python
      Python MySQL
      • Python MySQL
      • Connect MySQL database using MySQL-Connector Python
      • Python MySQL – Create Database
      • Python: MySQL Create Table
      • Python MySQL – Insert into Table
      • Python MySQL – Select Query
      • Python MySQL – Where Clause
      • Python MySQL – Order By Clause
      • Python MySQL – Delete Query
      • Python MySQL – Drop Table
      • Python MySQL – Update Query
      • Python MySQL – Limit Clause
      • Python MySQL – Join
      Python MongoDB
      • Python MongoDB Tutorial
      • Installing MongoDB on Windows with Python
      • MongoDB and Python
      • Create a database in MongoDB using Python
      • Python MongoDB – insert_one Query
      • Python MongoDB – insert_many Query
      • Python MongoDB – Find
      • Python MongoDB – Query
      • Python MongoDB – Sort
      • MongoDB python | Delete Data and Drop Collection
      • Python Mongodb – Delete_one()
      • Python Mongodb – Delete_many()
      • Python MongoDB – Update_one()
      • Python MongoDB – Update_many Query
      • Python MongoDB – Limit Query
      • Python MongoDB – create_index Query
      • Python MongoDB – drop_index Query
      Python OpenCV
      • OpenCV Python Tutorial
      • Introduction to OpenCV
      • How to Install OpenCV for Python on Windows?
      • Reading an image in OpenCV using Python
      • OpenCV | Saving an Image
      • Arithmetic Operations on Images using OpenCV | Set-1 (Addition and Subtraction)
      • Arithmetic Operations on Images using OpenCV | Set-2 (Bitwise Operations on Binary Images)
      • Image Resizing using OpenCV | Python
      • Image Processing in Python (Scaling, Rotating, Shifting and Edge Detection)
      • Python | Image blurring using OpenCV
      • Erosion and Dilation of images using OpenCV in python
      • Python | Thresholding techniques using OpenCV | Set-1 (Simple Thresholding)
      • Python | Thresholding techniques using OpenCV | Set-2 (Adaptive Thresholding)
      • Python | Thresholding techniques using OpenCV | Set-3 (Otsu Thresholding)
      • Filter Color with OpenCV
      • Python | Bilateral Filtering
      • Python | Background subtraction using OpenCV
      • Python | Play a video using OpenCV
      • Extract images from video in Python
      • Face Detection using Python and OpenCV with webcam
      Python Selenium
      • Selenium Python Tutorial
      • Selenium Basics – Components, Features, Uses and Limitations
      • Components of Selenium
      • Selenium Python Introduction and Installation
      • Navigating links using get method – Selenium Python
      • Interacting with Webpage – Selenium Python
      • Locating single elements in Selenium Python
      • Locating multiple elements in Selenium Python
      • Locator Strategies – Selenium Python
      • Action Chains in Selenium Python
      • Exceptions – Selenium Python
      Python Tkinter
      • Python Tkinter Tutorial
      • Introduction to Tkinter
      • What are Widgets in Tkinter?
      • Python | Creating a button in tkinter
      • Python Tkinter – Label
      • RadioButton in Tkinter | Python
      • Python Tkinter – Checkbutton Widget
      • Python Tkinter – Canvas Widget
      • Combobox Widget in tkinter | Python
      • Python Tkinter – Entry Widget
      • Python Tkinter – Text Widget
      • Python Tkinter – Message
      • Python | Menu widget in Tkinter
      • Python Tkinter – SpinBox
      • Progressbar widget in Tkinter | Python
      • Python-Tkinter Scrollbar
      • Python Tkinter – ScrolledText Widget
      • Python Tkinter – ListBox Widget
      • Python Tkinter – Frame Widget
      • Python Tkinter – Scale Widget
      • Hierarchical treeview in Python GUI application
      • Python-Tkinter Treeview scrollbar
      • Python Tkinter – Toplevel Widget
      • Python | askopenfile() function in Tkinter
      • Python | asksaveasfile() function in Tkinter
      • Python – Tkinter askquestion Dialog
      • Python Tkinter – MessageBox Widget
      • Python | place() method in Tkinter
      • Python | grid() method in Tkinter
      • Python | pack() method in Tkinter
      • Python | PanedWindow Widget in Tkinter
      • Python | Binding function in Tkinter
      • Python Tkinter – Validating Entry Widget
      Python Kivy
      • Kivy Tutorial
      • Introduction to Kivy ; A Cross-platform Python Framework
      • Python | Add Label to a kivy window
      • Python | Textinput widget in kivy
      • Python | Canvas in kivy
      • Python | Checkbox widget in Kivy
      • Python | Dropdown list in kivy
      • Python | Carousel Widget In Kivy
      • Python | BoxLayout widget in Kivy
      • Python | Slider widget in Kivy
      • Python | Popup widget in Kivy
      • Python | Switch widget in Kivy
      • Python | Spinner widget in kivy
      • Python | Progress Bar widget in kivy
      • Python | Working with buttons in Kivy
      • Python | Float Layout in Kivy
      • GridLayouts in Kivy | Python
      • Python | StackLayout in Kivy
      • Python| AnchorLayout in Kivy
      • Python | Relative Layout in Kivy
      • Python | PageLayout in Kivy
      Data Visualization
      • Matplotlib Tutorial
      • Python Seaborn Tutorial
      • Python Plotly tutorial
      • Python Bokeh tutorial – Interactive Data Visualization with Bokeh
      • Tableau Tutorial
      Python Examples and Quiz
      • Python Programming Examples
      • Python Exercises, Practice Questions and Solutions
      • Python Multiple Choice Questions
      Write an Article
      • Write Articles
      • Pick Topics to write
      • Guidelines to Write
      • Get Technical Writing Internship
    • Write an Interview Experience
    • Introduction
      • Python Programming Language
      • Introduction To PYTHON
      • Python Language advantages and applications
      • Download and Install Python 3 Latest Version
      • Python 3 basics
      • Python Keywords
      • Namespaces and Scope in Python
      • Statement, Indentation and Comment in Python
      • How to assign values to variables in Python and other languages
      Input/Output
      • Taking input in Python
      • Taking input from console in Python
      • Taking multiple inputs from user in Python
      • Python | Output using print() function
      • How to print without newline in Python?
      • Python end parameter in print()
      • Python | sep parameter in print()
      • Python | Output Formatting
      Operators
      • Python Operators
      • Ternary Operator in Python
      • Division Operators in Python
      • Operator Overloading in Python
      • Any All in Python
      • Operator Functions in Python | Set 1
      • Operator Functions in Python | Set 2
      • Difference between == and is operator in Python
      • Python Membership and Identity Operators
      Data Types
      • Python | Set 3 (Strings, Lists, Tuples, Iterations)
      • Python String
      • Python Lists
      • Python Tuples
      • Python Sets
      • Python Dictionary
      • Python Arrays
      Control Flow
      • Control Flow in Python
      • Chaining comparison operators in Python
      • Python For Loops
      • Python While Loop
      • Python break statement
      • Python Continue Statement
      • Python pass Statement
      • Looping Techniques in Python
      Functions
      • Python Functions
      • *args and **kwargs in Python
      • When to use yield instead of return in Python?
      • Generators in Python
      • Python lambda
      • Global and Local Variables in Python
      • Global keyword in Python
      • First Class functions in Python
      • Python Closures
      • Decorators in Python
      • Decorators with parameters in Python
      • Memoization using decorators in Python
      Python OOP
      • Python Classes and Objects
      • Constructors in Python
      • Destructors in Python
      • Inheritance in Python
      • Types of inheritance Python
      • Encapsulation in Python
      • Polymorphism in Python
      • Class or Static Variables in Python
      • Class method vs Static method in Python
      Exception Handling
      • Python Exception Handling
      • Python Try Except
      • Errors and Exceptions in Python
      • Built-in Exceptions in Python
      • User-defined Exceptions in Python with Examples
      • NZEC error in Python
      File handling
      • File Handling in Python
      • Open a File in Python
      • How to read from a file in Python
      • Writing to file in Python
      • Python append to a file
      Python Regex
      • Regular Expression in Python with Examples | Set 1
      • Regular Expressions in Python – Set 2 (Search, Match and Find All)
      • Python Regex: re.search() VS re.findall()
      • Verbose in Python Regex
      • Password validation in Python
      Python Collections
      • Python Collections Module
      • Counters in Python | Set 1 (Initialization and Updation)
      • OrderedDict in Python
      • Defaultdict in Python
      • ChainMap in Python
      • Namedtuple in Python
      • Deque in Python
      • Heap queue (or heapq) in Python
      • Collections.UserDict in Python
      • Collections.UserList in Python
      • Collections.UserString in Python
      Python Advance
      • OS Module in Python with Examples
      • Functional Programming in Python
      • Metaprogramming with Metaclasses in Python
      • Abstract Classes in Python
      • Multithreading in Python | Set 1
      • Multithreading in Python | Set 2 (Synchronization)
      • Multiprocessing in Python | Set 1 (Introduction)
      • Multiprocessing in Python | Set 2 (Communication between processes)
      • Socket Programming in Python
      • Socket Programming with Multi-threading in Python
      Python NumPy
      • NumPy Tutorial
      • Python Numpy
      • Numpy | ndarray
      • Numpy | Array Creation
      • Numpy | Indexing
      • Basic Slicing and Advanced Indexing in NumPy Python
      • Numpy | Data Type Objects
      • Numpy | Iterating Over Array
      • Numpy | Binary Operations
      • Numpy | Mathematical Function
      • Numpy | String Operations
      • Numpy | Linear Algebra
      • Numpy | Sorting, Searching and Counting
      • Random sampling in numpy | randint() function
      • Random sampling in numpy | random_sample() function
      • Random sampling in numpy | ranf() function
      • Random sampling in numpy | random_integers() function
      • Numpy ufunc | Universal functions
      Python Pandas
      • Pandas Tutorial
      • Introduction to Pandas in Python
      • How to Install Python Pandas on Windows and Linux?
      • Python | Pandas DataFrame
      • Creating a Pandas DataFrame
      • Python | Pandas Series
      • Creating a Pandas Series
      • Python | Pandas Dataframe/Series.head() method
      • Python | Pandas Dataframe.describe() method
      • Dealing with Rows and Columns in Pandas DataFrame
      • Python | Pandas Extracting rows using .loc[]
      • Python | Extracting rows using Pandas .iloc[]
      • Indexing and Selecting Data with Pandas
      • Boolean Indexing in Pandas
      • Pandas GroupBy
      • Python | Pandas Merging, Joining, and Concatenating
      • Python | Working with date and time using Pandas
      • Python | Pandas Working With Text Data
      • Python | Read csv using pandas.read_csv()
      • Python | Working with Pandas and XlsxWriter | Set – 1
      Python Django
      • Django Tutorial
      • Django Basics
      • Django Introduction and Installation
      • Django Project MVT Structure
      • How to Create a Basic Project using MVT in Django ?
      • How to Create an App in Django ?
      • Django Forms
      • Render HTML Forms (GET & POST) in Django
      • Django form field custom widgets
      • Django ModelForm – Create form from Models
      • Django Formsets
      • Django ModelFormSets
      • Django Templates
      • Views In Django | Python
      • Django CRUD (Create, Retrieve, Update, Delete) Function Based Views
      • Class Based Generic Views Django (Create, Retrieve, Update, Delete)
      • Django Models
      • Django ORM – Inserting, Updating & Deleting Data
      • Django Basic App Model – Makemigrations and Migrate
      Python JSON
      • Python JSON
      • Working With JSON Data in Python
      • Read, Write and Parse JSON using Python
      • Append to JSON file using Python
      • Serializing JSON data in Python
      • Deserialize JSON to Object in Python
      Python CSV
      • Working with csv files in Python
      • Reading CSV files in Python
      • Writing CSV files in Python
      Python MySQL
      • Python MySQL
      • Connect MySQL database using MySQL-Connector Python
      • Python MySQL – Create Database
      • Python: MySQL Create Table
      • Python MySQL – Insert into Table
      • Python MySQL – Select Query
      • Python MySQL – Where Clause
      • Python MySQL – Order By Clause
      • Python MySQL – Delete Query
      • Python MySQL – Drop Table
      • Python MySQL – Update Query
      • Python MySQL – Limit Clause
      • Python MySQL – Join
      Python MongoDB
      • Python MongoDB Tutorial
      • Installing MongoDB on Windows with Python
      • MongoDB and Python
      • Create a database in MongoDB using Python
      • Python MongoDB – insert_one Query
      • Python MongoDB – insert_many Query
      • Python MongoDB – Find
      • Python MongoDB – Query
      • Python MongoDB – Sort
      • MongoDB python | Delete Data and Drop Collection
      • Python Mongodb – Delete_one()
      • Python Mongodb – Delete_many()
      • Python MongoDB – Update_one()
      • Python MongoDB – Update_many Query
      • Python MongoDB – Limit Query
      • Python MongoDB – create_index Query
      • Python MongoDB – drop_index Query
      Python OpenCV
      • OpenCV Python Tutorial
      • Introduction to OpenCV
      • How to Install OpenCV for Python on Windows?
      • Reading an image in OpenCV using Python
      • OpenCV | Saving an Image
      • Arithmetic Operations on Images using OpenCV | Set-1 (Addition and Subtraction)
      • Arithmetic Operations on Images using OpenCV | Set-2 (Bitwise Operations on Binary Images)
      • Image Resizing using OpenCV | Python
      • Image Processing in Python (Scaling, Rotating, Shifting and Edge Detection)
      • Python | Image blurring using OpenCV
      • Erosion and Dilation of images using OpenCV in python
      • Python | Thresholding techniques using OpenCV | Set-1 (Simple Thresholding)
      • Python | Thresholding techniques using OpenCV | Set-2 (Adaptive Thresholding)
      • Python | Thresholding techniques using OpenCV | Set-3 (Otsu Thresholding)
      • Filter Color with OpenCV
      • Python | Bilateral Filtering
      • Python | Background subtraction using OpenCV
      • Python | Play a video using OpenCV
      • Extract images from video in Python
      • Face Detection using Python and OpenCV with webcam
      Python Selenium
      • Selenium Python Tutorial
      • Selenium Basics – Components, Features, Uses and Limitations
      • Components of Selenium
      • Selenium Python Introduction and Installation
      • Navigating links using get method – Selenium Python
      • Interacting with Webpage – Selenium Python
      • Locating single elements in Selenium Python
      • Locating multiple elements in Selenium Python
      • Locator Strategies – Selenium Python
      • Action Chains in Selenium Python
      • Exceptions – Selenium Python
      Python Tkinter
      • Python Tkinter Tutorial
      • Introduction to Tkinter
      • What are Widgets in Tkinter?
      • Python | Creating a button in tkinter
      • Python Tkinter – Label
      • RadioButton in Tkinter | Python
      • Python Tkinter – Checkbutton Widget
      • Python Tkinter – Canvas Widget
      • Combobox Widget in tkinter | Python
      • Python Tkinter – Entry Widget
      • Python Tkinter – Text Widget
      • Python Tkinter – Message
      • Python | Menu widget in Tkinter
      • Python Tkinter – SpinBox
      • Progressbar widget in Tkinter | Python
      • Python-Tkinter Scrollbar
      • Python Tkinter – ScrolledText Widget
      • Python Tkinter – ListBox Widget
      • Python Tkinter – Frame Widget
      • Python Tkinter – Scale Widget
      • Hierarchical treeview in Python GUI application
      • Python-Tkinter Treeview scrollbar
      • Python Tkinter – Toplevel Widget
      • Python | askopenfile() function in Tkinter
      • Python | asksaveasfile() function in Tkinter
      • Python – Tkinter askquestion Dialog
      • Python Tkinter – MessageBox Widget
      • Python | place() method in Tkinter
      • Python | grid() method in Tkinter
      • Python | pack() method in Tkinter
      • Python | PanedWindow Widget in Tkinter
      • Python | Binding function in Tkinter
      • Python Tkinter – Validating Entry Widget
      Python Kivy
      • Kivy Tutorial
      • Introduction to Kivy ; A Cross-platform Python Framework
      • Python | Add Label to a kivy window
      • Python | Textinput widget in kivy
      • Python | Canvas in kivy
      • Python | Checkbox widget in Kivy
      • Python | Dropdown list in kivy
      • Python | Carousel Widget In Kivy
      • Python | BoxLayout widget in Kivy
      • Python | Slider widget in Kivy
      • Python | Popup widget in Kivy
      • Python | Switch widget in Kivy
      • Python | Spinner widget in kivy
      • Python | Progress Bar widget in kivy
      • Python | Working with buttons in Kivy
      • Python | Float Layout in Kivy
      • GridLayouts in Kivy | Python
      • Python | StackLayout in Kivy
      • Python| AnchorLayout in Kivy
      • Python | Relative Layout in Kivy
      • Python | PageLayout in Kivy
      Data Visualization
      • Matplotlib Tutorial
      • Python Seaborn Tutorial
      • Python Plotly tutorial
      • Python Bokeh tutorial – Interactive Data Visualization with Bokeh
      • Tableau Tutorial
      Python Examples and Quiz
      • Python Programming Examples
      • Python Exercises, Practice Questions and Solutions
      • Python Multiple Choice Questions

    Python Multiple Choice Questions

    • Last Updated : 28 Jun, 2021

  • Read
  • Discuss
  • Courses
  • Practice
  • Video
    • Mcq / Quizzes
    • Outputs

    Mcq / Quizzes :

    1. Functions
    2. Operators
    3. Miscellaneous
    4. Data Type
    5. Output

    Outputs :

    1. Output of Python Program | Set 1
    2. Output of python program | Set 2
    3. Output of python program | Set 3
    4. Output of python program | Set 4
    5. Output of python program | Set 5
    6. Output of python program | Set 6(Lists)
    7. Output of python program | Set 7
    8. Output of python program | Set 8
    9. Output of python program | Set 9(Dictionary)
    10. Output of python program | Set 10(Exception Handling)
    11. Output of python program | Set 11(Lists)
    12. Output of python program | Set 12(Lists and Tuples)
    13. Output of python program | Set 13(Lists and Tuples)
    14. Output of python program | Set 14 (Dictionary)
    1. Output of python program | Set 15 (Modules)
    2. Output of Python program | Set 15 (Loops)
    3. Output of Python program | Set 16 (Threads)
    4. Output of Python program | Set 17
    5. Output of Python Programs | Set 18 (List and Tuples)
    6. Output of Python Programs | Set 19 (Strings)
    7. Output of Python Programs | Set 20 (Tuples)
    8. Output of Python Programs | Set 21 (Bool)
    9. Output of Python Programs | Set 22 (Loops)
    10. Output of Python Programs | Set 23 (String in loops)
    11. Output of Python Programs | Set 24 (Sets)

     
     
     
     


    All Articles of Python

    • Java Multiple Choice Questions
    • C Multiple Choice Questions
    • C++ Multiple Choice Questions
    • Multiple Choice Questions on all CS topics

     

    My Personal Notes arrow_drop_up

    Please Login to comment...

    What's New
    Master Data Science & ML
    View Details
    DSA- Live Classes
    View Details
    System Design- Live Classes
    View Details

    Improve your Coding Skills with Practice

    A-143, 9th Floor, Sovereign Corporate Tower,
    Sector-136, Noida, Uttar Pradesh - 201305
    feedback@geeksforgeeks.org
    • Company
    • About Us
    • Careers
    • In Media
    • Contact Us
    • Privacy Policy
    • Copyright Policy
    • Advertise with us
    • Learn
    • DSA
    • Algorithms
    • Data Structures
    • SDE Cheat Sheet
    • Machine learning
    • CS Subjects
    • Video Tutorials
    • Courses
    • News
    • Top News
    • Technology
    • Work & Career
    • Business
    • Finance
    • Lifestyle
    • Knowledge
    • Languages
    • Python
    • Java
    • CPP
    • Golang
    • C#
    • SQL
    • Kotlin
    • Web Development
    • Web Tutorials
    • Django Tutorial
    • HTML
    • JavaScript
    • Bootstrap
    • ReactJS
    • NodeJS
    • Contribute
    • Write an Article
    • Improve an Article
    • Pick Topics to Write
    • Write Interview Experience
    • Internships
    • Video Internship
    @geeksforgeeks , Some rights reserved
    We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
    Lightbox

    Start Your Coding Journey Now!