Skip to content
geeksforgeeks
  • Courses
    • For Working Professionals
      • Data Structure & Algorithm Classes (Live)
      • System Design (Live)
      • DevOps(Live)
      • Explore More Live Courses
    • For Students
      • Interview Preparation Course
      • Data Science (Live)
      • GATE CS & IT 2024
      • Data Structure & Algorithm-Self Paced(C++/JAVA)
      • Data Structures & Algorithms in Python
      • Explore More Self-Paced Courses
    • Programming Languages
      • C++ Programming - Beginner to Advanced
      • Java Programming - Beginner to Advanced
      • C Programming - Beginner to Advanced
    • Web Development
      • Full Stack Development with React & Node JS(Live)
      • Java Backend Development(Live)
      • Android App Development with Kotlin(Live)
      • Python Backend Development with Django(Live)
    • Machine Learning and Data Science
      • Complete Data Science Program(Live)
      • Mastering Data Analytics
    • New Courses
      • Python Backend Development with Django(Live)
      • Android App Development with Kotlin(Live)
      • DevOps Engineering - Planning to Production
    • 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
        • Design and 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
    • System Design
      • System Design Tutorial
      • Software Design Patterns
    • Interview Corner
      • Company Preparation
      • Top Topics
      • Practice Company Questions
      • Interview Experiences
      • Experienced Interviews
      • Internship Interviews
      • Competitive Programming
      • Multiple Choice Quizzes
      • Aptitude for Placements
    • 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
      • English Grammar
      • School Programming
      • Mathematics
        • Number System
        • Algebra
        • Trigonometry
        • Statistics
        • Probability
        • Geometry
        • Mensuration
        • Calculus
      • CBSE Syllabus
        • Class 8 Syllabus
        • Class 9 Syllabus
        • Class 10 Syllabus
        • Class 11 Syllabus
        • Class 12 Syllabus
      • Maths Notes (Class 8-12)
        • Class 8 Notes
        • Class 9 Notes
        • Class 10 Notes
        • Class 11 Notes
        • Class 12 Notes
      • Maths Formulas (Class 8 -11)
        • Class 8 Formulas
        • Class 9 Formulas
        • Class 10 Formulas
        • Class 11 Formulas
      • 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
      • Science Notes
        • Class 8 Notes
        • Class 9 Notes
        • Class 10 Notes
      • Physics Notes (Class 8-12)
        • Class 8 Notes
        • Class 9 Notes
        • Class 10 Notes
        • Class 11 Notes
        • Class 12 Notes
      • Chemistry Notes (Class 8-12)
        • Class 8 Notes
        • Class 9 Notes
        • Class 10 Notes
        • Class 11 Notes
        • Class 12 Notes
      • Biology Notes
        • Class 8
        • Class 9
        • Class 10
        • Class 11
      • Social Science Syllabus
        • Class 7 SS Syllabus
        • Class 8 SS Syllabus
        • Class 9 SS Syllabus
        • Class 10 SS Syllabus
      • Social Science Notes
        • SS Notes (Class 7-12)
          • Class 7 Notes
          • Class 8 Notes
          • Class 9 Notes
          • Class 10 Notes
        • CBSE History Notes (Class 7-10)
          • History Class 7
          • History Class 8
          • History Class 9
        • CBSE Geography Notes (Class 7-10)
          • Geo. Class 7
          • Geo. Class 8
          • Geo. Class 9
        • CBSE Civics Notes (Class 7-10)
          • Civics Class 7
          • Civics Class 8
      • Commerce
        • Business Studies (Class 11th)
        • Microeconomics (Class 11th)
        • Statistics for Economics (Class 11th)
        • Business Studies (Class 12th)
        • Accountancy (Class 12th)
        • Macroeconomics (Class 12th)
      • CBSE Previous Year Papers
        • Maths
        • Physics
        • History
        • Georgraphy
        • Political Science
        • Economics
    • 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 2024 Live Course
      • 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
    • 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
        • General Awareness
      • 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
  • Saved Videos
  • Courses
    • GBlog
    • Puzzles
    • What's New ?
    • DSA
    • Data Structures
    • Algorithms
    • Interview Preparation
    • Data Science
    • Topic-wise Practice
    • C
    • C++
    • Java
    • JavaScript
    • Python
    • Latest Blogs
    • Competitive Programming
    • Machine Learning
    • Aptitude
    • 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
    • Interview Preparation
      • Interview Preparation For Software Developers
      • Must Coding Questions - Company-wise
      • Must Do Coding Questions - Topic-wise
      • Company-wise Practice Problems
      • Company Preparation
      • Competitive Programming
      • Software Design-Patterns
      • Company-wise Interview Experience
      • Experienced - Interview Experiences
      • Internship - Interview Experiences
      Practice @Geeksforgeeks
      • Problem of the Day
      • Topic-wise Practice
      • Subjective Problems
      • Difficulty Level - School
      • Difficulty Level - Basic
      • Difficulty Level - Easy
      • Difficulty Level - Medium
      • Difficulty Level - Hard
      • Leaderboard !!
      • Explore More...
      Data Structures
      • Arrays
      • Linked List
      • Stack
      • Queue
      • Binary Tree
      • Binary Search Tree
      • Heap
      • Hashing
      • Graph
      • Advance Data Structures
      • Matrix
      • String
      • All Data Structures
      Algorithms
      • Analysis of Algorithms
      • Searching Algorithms
      • Sorting Algorithms
      • Pattern Searching
      • Geometric Algorithms
      • Mathematical Algorithms
      • Randomized Algorithms
      • Greedy Algorithms
      • Dynamic Programming
      • Divide & Conquer
      • Backtracking
      • Branch & Bound
      • All Algorithms
      Programming Languages
      • C
      • C++
      • Java
      • Python
      • C#
      • Go Lang
      • SQL
      • PHP
      • Scala
      • Perl
      • Kotlin
      Web Technologies
      • HTML
      • CSS
      • JavaScript
      • jQuery
      • PHP
      • Bootstrap
      • AngularJS
      • ReactJS
      • NodeJS
      • p5.js
      • Lodash.js
      • jQwidget
      • jQuery-UI
      • Wordpress
      • Tailwind CSS
      • JSON
      • jQuery Mobile
      • Collect.js
      • Pure CSS
      • Bulma
      • Foundation
      • Materialize CSS
      • Semantic-UI
      • TypeScript
      • SVG
      • Express.js
      • Ant Design
      • React Design
      • Tensorflow.js
      Computer Science Subjects
      • Operating Systems
      • DBMS
      • Computer Network
      • Computer Organization & Architecture
      • TOC
      • Compiler Design
      • Digital Elec. & Logic Design
      • Software Engineering
      • Engineering Mathematics
      Machine Learning
      • Machine Learning Introduction
      • Data PreProcessing
      • Supervised Learning
      • UnSupervised Learning
      • Reinforcement Learning
      • Dimensionality Reduction
      • Natural Language Processing
      • Neural Networks
      • ML – Applications
      Tutorial Library
      • Python Tutorial
      • Django Tutorial
      • Pandas Tutorial
      • Kivy Tutorial
      • Tkinter Tutorial
      • OpenCV Tutorial
      • Selenium Tutorial
      GATE 2021
      • GATE CS Notes
      • Gate Corner
      • Previous Year GATE Papers
      • Last Minute Notes (LMNs)
      • Important Topic - GATE 2021
      • GATE 2021 Course
      UGC NET / ISRO
      • UGC NET Notes - Paper II
      • UGC NET Notes - Paper III
      • UGC NET Solved Papers
      • ISRO CS Solved Papers
      • ISRO Official Keys
      • ISRO CSE Syllabus
      QUIZ Section
      • C Quiz
      • C++ Quiz
      • Java Quiz
      • Python Quiz
      • HTML Quiz
      • CSS Quiz
      • JavaScript Quiz
      • Data Structures Quiz
      • Algorithms Quiz
      • Topic-wise MCQs
      GeeksforGeeks Initiatives
      • Campus Ambassador Program
      • Geek Of The Month
      • Geek On The TOP
      • Campus Geek Of The Month
      • Technical Scripter Event
      • Computer Science Projects
      School Content
      • School Programming
      • Number System & Arithmetic
      • Algebra
      • Trigonomitry
      • Statistics
      • Probability
      • Geometry
      • Mensuration
      • Calculus
      • Class 8 Physics Notes
      • Class 9 Physics Notes
      • Class 10 Physics Notes
      • Class 11 Physics Notes
      • Class 8 Chemistry Notes
      • Class 9 Chemistry Notes
      • Class 10 Chemistry
      Write an Article
      • Write Articles
      • Pick Topics to write
      • Guidelines to Write
      • Get Technical Writing Internship
    • Write an Interview Experience
    • Interview Preparation
      • Interview Preparation For Software Developers
      • Must Coding Questions - Company-wise
      • Must Do Coding Questions - Topic-wise
      • Company-wise Practice Problems
      • Company Preparation
      • Competitive Programming
      • Software Design-Patterns
      • Company-wise Interview Experience
      • Experienced - Interview Experiences
      • Internship - Interview Experiences
      Practice @Geeksforgeeks
      • Problem of the Day
      • Topic-wise Practice
      • Subjective Problems
      • Difficulty Level - School
      • Difficulty Level - Basic
      • Difficulty Level - Easy
      • Difficulty Level - Medium
      • Difficulty Level - Hard
      • Leaderboard !!
      • Explore More...
      Data Structures
      • Arrays
      • Linked List
      • Stack
      • Queue
      • Binary Tree
      • Binary Search Tree
      • Heap
      • Hashing
      • Graph
      • Advance Data Structures
      • Matrix
      • String
      • All Data Structures
      Algorithms
      • Analysis of Algorithms
      • Searching Algorithms
      • Sorting Algorithms
      • Pattern Searching
      • Geometric Algorithms
      • Mathematical Algorithms
      • Randomized Algorithms
      • Greedy Algorithms
      • Dynamic Programming
      • Divide & Conquer
      • Backtracking
      • Branch & Bound
      • All Algorithms
      Programming Languages
      • C
      • C++
      • Java
      • Python
      • C#
      • Go Lang
      • SQL
      • PHP
      • Scala
      • Perl
      • Kotlin
      Web Technologies
      • HTML
      • CSS
      • JavaScript
      • jQuery
      • PHP
      • Bootstrap
      • AngularJS
      • ReactJS
      • NodeJS
      • p5.js
      • Lodash.js
      • jQwidget
      • jQuery-UI
      • Wordpress
      • Tailwind CSS
      • JSON
      • jQuery Mobile
      • Collect.js
      • Pure CSS
      • Bulma
      • Foundation
      • Materialize CSS
      • Semantic-UI
      • TypeScript
      • SVG
      • Express.js
      • Ant Design
      • React Design
      • Tensorflow.js
      Computer Science Subjects
      • Operating Systems
      • DBMS
      • Computer Network
      • Computer Organization & Architecture
      • TOC
      • Compiler Design
      • Digital Elec. & Logic Design
      • Software Engineering
      • Engineering Mathematics
      Machine Learning
      • Machine Learning Introduction
      • Data PreProcessing
      • Supervised Learning
      • UnSupervised Learning
      • Reinforcement Learning
      • Dimensionality Reduction
      • Natural Language Processing
      • Neural Networks
      • ML – Applications
      Tutorial Library
      • Python Tutorial
      • Django Tutorial
      • Pandas Tutorial
      • Kivy Tutorial
      • Tkinter Tutorial
      • OpenCV Tutorial
      • Selenium Tutorial
      GATE 2021
      • GATE CS Notes
      • Gate Corner
      • Previous Year GATE Papers
      • Last Minute Notes (LMNs)
      • Important Topic - GATE 2021
      • GATE 2021 Course
      UGC NET / ISRO
      • UGC NET Notes - Paper II
      • UGC NET Notes - Paper III
      • UGC NET Solved Papers
      • ISRO CS Solved Papers
      • ISRO Official Keys
      • ISRO CSE Syllabus
      QUIZ Section
      • C Quiz
      • C++ Quiz
      • Java Quiz
      • Python Quiz
      • HTML Quiz
      • CSS Quiz
      • JavaScript Quiz
      • Data Structures Quiz
      • Algorithms Quiz
      • Topic-wise MCQs
      GeeksforGeeks Initiatives
      • Campus Ambassador Program
      • Geek Of The Month
      • Geek On The TOP
      • Campus Geek Of The Month
      • Technical Scripter Event
      • Computer Science Projects
      School Content
      • School Programming
      • Number System & Arithmetic
      • Algebra
      • Trigonomitry
      • Statistics
      • Probability
      • Geometry
      • Mensuration
      • Calculus
      • Class 8 Physics Notes
      • Class 9 Physics Notes
      • Class 10 Physics Notes
      • Class 11 Physics Notes
      • Class 8 Chemistry Notes
      • Class 9 Chemistry Notes
      • Class 10 Chemistry

    Python Quizzes

    • Last Updated : 28 Jun, 2021

  • Read
  • Discuss
  • Courses
  • Practice
  • Video
  • Quizzes on Python

    • Functions
    • Operators
    • Miscellaneous
    • Data Type
    • Output
    • Assorted MCQs on Python (20)

    Please refer Python Page for all articles and Quizzes on Python

    Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above

    My Personal Notes arrow_drop_up

    Please Login to comment...

    Related Articles
    1. Mock Quizzes for GATE CS
    2. Quizzes on Programming Languages
    3. Quizzes on Computer Science
    4. Python Multiple Choice Questions
    5. Python | Pandas Working With Text Data
    6. Python | Pandas Merging, Joining, and Concatenating
    7. Python | Pandas Working with Dates and Times
    8. Python Programming Examples
    9. Python Pandas Series
    10. Python Pandas DataFrame
    Courses
    course-img
    112k+ interested Geeks

    Data Structures & Algorithms in Python - Self Paced

    Beginner to Advance
    course-img
    860k+ interested Geeks

    Data Structures and Algorithms - Self Paced

    Beginner to Advance
    course-img
    9k+ interested Geeks

    Complete Test Series for Service-Based Companies

    Beginner to Advance
    course-img
    769k+ interested Geeks

    Complete Interview Preparation - Self Paced

    Beginner to Advance

    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
    • Third-Party Copyright Notices
    • Advertise with us
    • Languages
    • Python
    • Java
    • C++
    • GoLang
    • SQL
    • R Language
    • Android Tutorial
    • Data Structures
    • Array
    • String
    • Linked List
    • Stack
    • Queue
    • Tree
    • Graph
    • Algorithms
    • Sorting
    • Searching
    • Greedy
    • Dynamic Programming
    • Pattern Searching
    • Recursion
    • Backtracking
    • Web Development
    • HTML
    • CSS
    • JavaScript
    • Bootstrap
    • ReactJS
    • AngularJS
    • NodeJS
    • Write & Earn
    • Write an Article
    • Improve an Article
    • Pick Topics to Write
    • Write Interview Experience
    • Internships
    • Video Internship
    • Computer Science
    • GATE CS Notes
    • Operating Systems
    • Computer Network
    • Database Management System
    • Software Engineering
    • Digital Logic Design
    • Engineering Maths
    • Data Science & ML
    • Data Science With Python
    • Data Science For Beginner
    • Machine Learning Tutorial
    • Maths For Machine Learning
    • Pandas Tutorial
    • NumPy Tutorial
    • NLP Tutorial
    • Interview Corner
    • Company Preparation
    • Preparation for SDE
    • Company Interview Corner
    • Experienced Interview
    • Internship Interview
    • Competitive Programming
    • Aptitude
    • Python
    • Python Tutorial
    • Python Programming Examples
    • Django Tutorial
    • Python Projects
    • Python Tkinter
    • OpenCV Python Tutorial
    • GfG School
    • CBSE Notes for Class 8
    • CBSE Notes for Class 9
    • CBSE Notes for Class 10
    • CBSE Notes for Class 11
    • CBSE Notes for Class 12
    • English Grammar
    • UPSC/SSC/BANKING
    • SSC CGL Syllabus
    • SBI PO Syllabus
    • IBPS PO Syllabus
    • UPSC Ethics Notes
    • UPSC Economics Notes
    • UPSC History Notes
    @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!