GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Python Tutorial
  • Data Types
  • Interview Questions
  • Examples
  • Quizzes
  • DSA Python
  • Data Science
  • NumPy
  • Pandas
  • Practice
  • Django
  • Flask
  • Introduction
  • Applications

This view

  • Original page
  • New address

GeezerVison is showing www.geeksforgeeks.org — Python Tutorial | Learn Python Programming Language - GeeksforGeeks

geeksforgeeks
search icon
  • Courses
    Sale
  • Tutorials
  • Interview Prep
  • Python Tutorial
  • Data Types
  • Interview Questions
  • Examples
  • Quizzes
  • DSA Python
  • Data Science
  • NumPy
  • Pandas
  • Practice
  • Django
  • Flask

Python Tutorial

Last Updated : 14 Nov, 2026

Python is one of the most popular programming languages. It’s simple to use, packed with features and supported by a wide range of libraries and frameworks. Its clean syntax makes it beginner-friendly.

  • A high-level language used in data science, automation, AI, web development and more.
  • Known for its readability, which means code is easier to write, understand and maintain.
  • Backed by strong library support, we don’t have to build everything from scratch.

Basics

Start with Python fundamentals, including installation and concepts needed to start programming with Python.

  • Introduction
  • Applications
  • Input and Output
  • Variables & Operators
  • Keywords & Data Types
  • Conditional Statements & Loops
  • Project: Rock Paper Scissor Game
  • Quiz: Basics, I/O, Data Types, Control Flow, Loops
  • Exercise: Printing, Decision Making, Multiplication Table

Functions

Learn how to organize code into reusable blocks for performing specific tasks.

  • Functions & Pass
  • Global and Local Variables
  • Recursion
  • *args and **kwargs in Function
  • First Class & Lambda Function
  • Map, Reduce and Filter Function
  • Inner Function & Decorators
  • Project: Number Guessing Game
  • Quiz: Functions
  • Exercise: Return Value, No Arguments

Data Structures

Learn how to store, organize and work with different types of data.

  • Strings
  • List & Tuples
  • Dictionary & Sets
  • Arrays & List Comprehension
  • Project: Tic Tac Toe Game
  • Quiz: String, List,  Tuples, Dictionary, Sets, List Comprehension
  • Exercise: Reverse String, List Sum, First Repeating

Python's collections module offers essential data structures, including the following:

  • Counters
  • Heapq & Deque
  • OrderedDict & Defaultdict
  • Quiz: Counters, Heapq, Deque, OrderedDict
  • Exercise: Height of Heap, Maximum Diamonds, Rotten Oranges
  • Complete Tutorial: DSA with Python

OOP Concepts

Learn how to use object-oriented programming to organize code using classes and objects.

  • Classes and Objects
  • Constructors
  • ‘Self’ as Default Argument
  • Polymorphism
  • Inheritance
  • Abstraction
  • Encapsulation
  • Iterators
  • Project: Banking System
  • Quiz: OOP Concepts
  • Exercise: Design a class, Encapsulation, Abstraction

Exception Handling

Learn how to handle errors and prevent programs from stopping unexpectedly.

  • Exception Handling
  • Built-in Exception
  • User defined Exception
  • Exercise: Exception Practice
  • Quiz: Exception Handling

File Handling

Learn how to create, read, write and manage files in Python.

  • File Handling
  • Read Files
  • Write/Create Files
  • OS Module
  • pathlib Module
  • Directory Management
  • Quiz: File Handling

Database Handling

Learn how to connect Python applications with databases and work with stored data.

  • MongoDB Introduction
  • MySQL Introduction
  • Project: Management System
  • Quiz: MySQL, MongoDB
  • Exercise: SQL

Packages or Libraries

Explore Python packages and libraries that provide ready-to-use tools for different tasks.

Some commonly used types of libraries include:

  • Packages
  • Built-in Modules
  • DSA Libraries
  • GUI Libraries
  • Project: Screen Recorder

Data Science

1. Foundational Libraries: These are the libraries that form the base for all data science work. Start here to build a strong foundation.

  • NumPy
  • Pandas
  • Matplotlib

2. Advanced Visualization and Statistical Tools: Once you’re comfortable with basic data handling and visualization, move to creating cleaner visuals and performing statistical analysis.

  • Seaborn
  • Statsmodel

3. Machine Learning Libraries: After data manipulation and visualization, learn machine learning, starting with simpler models and moving to advanced ones.

  • Scikit-learn
  • XGBoost /LightGBM

4. Deep Learning Frameworks: If you’re interested in AI and deep learning, these libraries will allow you to build and train neural networks.

  • TensorFlow and Keras
  • PyTorch
  • Project: Sentiment Analysis
  • Complete Tutorial: Data Science

Web Development

1. Core Web Frameworks (Backend Development with Python): These are the tools for building Python-based web applications.

  • Flask
  • Django

2. Database Integration: Learn how to connect Python web frameworks to databases for storing and retrieving data.

  • SQLite
  • SQLAlchemy
  • MySQL

3. Front-End and Backend Integration: Learn how to connect Python backends with front-end technologies to create dynamic, full-stack web applications.

  • Jinja2 (Flask)
  • Django Templates

4. API Development: Learn to build APIs (Application Programming Interfaces) for connecting your backend with front-end apps or other services.

  • Flask-RESTful
  • Django REST Framework (DRF)
  • Project: ToDo webapp
  • Complete Tutorial: Web Development

Interview Questions and Practice Problems

This section provides a collection of commonly asked Python interview questions and practice problems to help you prepare for technical interviews and improve your coding skills.

  • Interview Questions and Answers
  • Coding Problems

This Python tutorial is updated based on latest Python 3.13.13 version.

Comment

Explore

    Python Fundamentals
    • Introduction1 min read
    • Input & Output2 min read
    • Variables4 min read
    • Operators4 min read
    • Keywords2 min read
    • Data Types4 min read
    • Conditional Statements3 min read
    • Loops3 min read
    • Functions4 min read
    Python Data Structures
    • String4 min read
    • List3 min read
    • Tuples3 min read
    • Dictionary3 min read
    • Set2 min read
    • Arrays5 min read
    Advanced Python
    • OOP Concepts3 min read
    • Exception Handling5 min read
    • File Handling4 min read
    • Python Database2 min read
    • MongoDB3 min read
    • MySQL7 min read
    • Packages4 min read
    • Modules3 min read
    • DSA Libraries5 min read
    • Python GUI2 min read
    Data Science with Python
    • Numpy3 min read
    • Pandas4 min read
    • Matplotlib3 min read
    • Seaborn3 min read
    • StatsModel2 min read
    • Model Building6 min read
    • TensorFlow2 min read
    • PyTorch5 min read
    Web Development with Python
    • Flask3 min read
    • Django5 min read
    • Django ORM4 min read
    • Jinja2 Templating5 min read
    • Django Templates5 min read
    • REST API3 min read
    • Build API with DRF4 min read
    Python Practice
    • Quiz1 min read
    • Practice Problems2 min read
    • Interview Q & A15+ min read
    Courses
    • Placement 360 Course2 min read
    • Data Science 360 Course2 min read
    • AI Engg Course2 min read
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.