Last Updated : 23 Jul, 2025
Python is a versatile, interpreted programming language celebrated for its simplicity and readability. This guide will walk us through installing Python, running first program and exploring interactive coding—all essential steps for beginners.
Install PythonBefore starting this Python course first, you need to install Python on your computer. Most systems come with Python pre-installed. To verify if Python is available on your computer, simply open command line interface (Command Prompt on Windows or Terminal on macOS/Linux) and type:
python --version
If Python is installed, this command will display its version but if it is not installed then to install Python on our computer, follow these steps:
Step By Step Installation Guide:
That's it! Python should now be installed on your computer, and you're ready to start using Python.
Create and Run your First Python Program on TerminalOnce you have Python installed, you can run the program by following these steps:
You should see the output "Hello World" printed in the terminal.
Using Python’s Interactive ShellFor quick experiments, use Python’s interactive shell:
1. Launch the Shell:
python
or, if required:
Python's Interactive Shellpython3
2. Enter Commands Directly:
For example:
Python Script on Shell>>> print("Hello, World!")
3. Exit the Shell:
Exiting the Shell Next Stepsexit()
With Python installed and your first script running, continue your journey by exploring:
Each step will help you build confidence and deepen your understanding of Python programming. While Learning Python, we will be using Geeksforgeeks code-editor present inside every tutorial, where you can learn and modify the code for practice. Let's see how to print Printing "Hello World" on online ide.
Using Python on Google ColabGoogle Colab is a popular cloud-based platform that provides an interactive Python environment for running Python code. It’s especially useful for data science, machine learning, and educational purposes, as it allows you to write and execute Python code in the browser without installing anything locally.
Steps to Get Started on Google Colab:Example:
Snapshot of Google colabThe above image shows how easily we can work with Python on Google colab.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4