Courses Tutorials Practice Jobs Search...
Sign In
Python Course Python Tutorial Interview Questions Python Quiz Python Glossary Python Projects Practice Python Data Science With Python Python Web Dev DSA with Python Python OOPs
Explore GfG Courses
Python Introduction
Share Your Experiences
Last Updated : 15 May, 2025
Python Introduction
Python was created by Guido van Rossum in 1991 and further developed by the Python Software
Input and Output in Python Foundation. It was designed with focus on code readability and its syntax allows us to express concepts
in fewer lines of code.
Python Variables
Key Features of Python
Python Operators Python’s simple and readable syntax makes it beginner-friendly.
Python runs seamlessly on Windows, macOS and Linux.
Python Keywords Includes libraries for tasks like web development, data analysis and machine learning.
Variable types are determined automatically at runtime, simplifying code writing.
Python Data Types
Supports multiple programming paradigms, including object-oriented, functional and procedural
Conditional Statements in
programming.
Python Python is free to use, distribute and modify.
Loops in Python - For, While and Understanding Hello World Program in Python
Nested Loops
Hello, World! in python is the first python program which we learn when we start learning any
Python Functions program. It’s a simple program that displays the message “Hello, World!” on the screen.
Python Data Structures
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 Got It !
Python OOPs Concepts
P th E ti H dli
Hello World Program
Here’s the “Hello World” program:
# This is a comment. It will not be executed.
print("Hello, World!")
Output
Hello, World!
How does this work:
print() is a built-in Python function that tells the computer to show something on the screen.
The message "Hello, World!" is a string, which means it's just text. In Python, strings are always
written inside quotes (either single ' or double ").
Anything after # in a line is a comment. Python ignores comments when running the code, but they
help people understand what the code is doing.
Comments are helpful for explaining code, making notes or skipping lines while testing.
261k+ interested Geeks 188k+ inte
We can also write multi-line comments using triple quotes:
Master Competitive C Program
Programming - Complete… - Learn C
"""
This is a multi-line comment. Explore Explore
It can be used to describe larger sections of code.
"""
To understand comments in detail, refer to article: Comments.
Indentation in Python
In Python, Indentation is used to define blocks of code. It tells the Python interpreter that a group of
statements belongs to a specific block. All statements with the same level of indentation are considered
part of the same block. Indentation is achieved using whitespace (spaces or tabs) at the beginning of
each line.
Example:
if 10 > 5:
print("This is true!")
print("I am tab indentation")
print("I have no indentation")
Explanation:
The first two print statements are indented by 4 spaces, so they belong to the if block.
The third print statement is not indented, so it is outside the if block.
To understand Indentation in detail, refer to article: Indentation.
Famous Application Built using Python
YouTube: World’s largest video-sharing platform uses Python for features like video streaming and
backend services.
Instagram: This popular social media app relies on Python’s simplicity for scaling and handling
millions of users.
Spotify: Python is used for backend services and machine learning to personalize music
recommendations.
Dropbox: The file hosting service uses Python for both its desktop client and server-side operations.
Netflix: Python powers key components of Netflix’s recommendation engine and content delivery
systems (CDN).
Google: Python is one of the key languages used in Google for web crawling, testing and data
analysis.
Uber: Python helps Uber handle dynamic pricing and route optimization using machine learning.
Pinterest: Python is used to process and store huge amounts of image data efficiently.
What can we do with Python?
Python is used for:
Web Development: Frameworks like Django, Flask.
Data Science and Analysis: Libraries like Pandas, NumPy, Matplotlib.
Machine Learning and AI: TensorFlow, PyTorch, Scikit-learn.
Automation and Scripting: Automate repetitive tasks.
Game Development: Libraries like Pygame.
Web Scraping: Tools like BeautifulSoup, Scrapy.
Desktop Applications: GUI frameworks like Tkinter, PyQt.
Scientific Computing: SciPy, SymPy.
Internet of Things (IoT): MicroPython, Raspberry Pi.
DevOps and Cloud: Automation scripts and APIs.
Cybersecurity: Penetration testing and ethical hacking tools.
Comment More info Campus Training Program Next Article
Input and Output in Python
Similar Reads
Introduction to Python3
Python is a high-level general-purpose programming language. Python programs generally are
smaller than other programming languages like Java. Programmers have to type rel...
15+ min read
Introduction to Python GIS
Geographic Information Systems (GIS) are powerful tools for managing, analyzing, and visualizing
spatial data. Python, a versatile programming language, has emerged as a p...
15+ min read
Introduction to Python Black Module
Python, being a language known for its readability and simplicity, offers several tools to help
developers adhere to these principles. One such tool is Black, an uncomprom...
15+ min read
Indentation in Python
In Python, indentation is used to de ne blocks of code. It tells the Python interpreter that a group of
statements belongs to a speci c block. All statements with the sa...
8 min read
Python Built in Functions
Python is the most popular programming language created by Guido van Rossum in 1991. It is used
for system scripting, software development, and web development (server-sid...
15+ min read
Python Docstrings
When it comes to writing clean, well-documented code, Python developers have a secret weapon at
their disposal – docstrings. Docstrings, short for documentation strings,...
15+ min read
Introduction to Python Pydantic Library
In modern Python development, data validation and parsing are essential components of building
robust and reliable applications. Whether we're developing APIs, working wit...
15+ min read
Jython - Introduction and Installation
It's not hidden that Java is a powerful and Python is a simple and easy language. To get them both
together, Jython was introduced so it is both powerful and simple. It is...
9 min read
Print lists in Python
Printing a list in Python is a common task when we need to visualize the items in the list. There are
several methods to achieve this and each is suitable for different si...
14 min read
Python Fire Module
Python Fire is a library to create CLI applications. It can automatically generate command line
Interfaces from any object in python. It is not limited to this, it is a go...
15+ min read
Company Explore Tutorials DSA Data Science & ML Web Technologies
About Us Job-A-Thon Python Data Structures Data Science With Python HTML
Corporate & Communications Address: Legal O line Classroom Program Java Algorithms Machine Learning CSS
A-143, 7th Floor, Sovereign Corporate Privacy Policy DSA in JAVA/C++ C++ DSA for Beginners ML Maths JavaScript
Tower, Sector- 136, Noida, Uttar Pradesh
Careers Master System Design PHP Basic DSA Problems Data Visualisation TypeScript
(201305)
In Media Master CP GoLang DSA Roadmap Pandas ReactJS
Contact Us Videos SQL DSA Interview Questions NumPy NextJS
Registered Address:
K 061, Tower K, Gulshan Vivante Corporate Solution R Language Competitive Programming NLP NodeJs
Apartment, Sector 137, Noida, Gautam Campus Training Program Android Deep Learning Bootstrap
Buddh Nagar, Uttar Pradesh, 201305
Tailwind CSS
Python Tutorial Computer Science DevOps System Design School Subjects Databases
Python Examples GATE CS Notes Git High Level Design Mathematics SQL
Django Tutorial Operating Systems AWS Low Level Design Physics MYSQL
Python Projects Computer Network Docker UML Diagrams Chemistry PostgreSQL
Python Tkinter Database Management Kubernetes Interview Guide Biology PL/SQL
Web Scraping System Azure Design Patterns Social Science MongoDB
Advertise with us OpenCV Tutorial So ware Engineering GCP OOAD English Grammar
Python Interview Question Digital Logic Design DevOps Roadmap System Design Bootcamp
Engineering Maths Interview Questions
Preparation Corner More Tutorials Courses Programming Clouds/Devops GATE 2026
Company-Wise Recruitment So ware Development IBM Certification Courses Languages DevOps Engineering GATE CS Rank Booster
Process So ware Testing DSA and Placements C Programming with Data AWS Solutions Architect GATE DA Rank Booster
Aptitude Preparation Product Management Web Development Structures Certification GATE CS & IT Course - 2026
Puzzles Project Management Data Science C++ Programming Course Salesforce Certified GATE DA Course 2026
Company-Wise Preparation Linux Programming Languages Java Programming Course Administrator Course GATE Rank Predictor
Excel DevOps & Cloud Python Full Course
All Cheat Sheets
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved