A collection of essential Data Structures and Algorithms implemented in Python.
Follow these steps to install Python on Ubuntu.
Open a terminal and run the following commands:
# 1. Update Package List
sudo apt update
# 2. Install Python
sudo apt install python3
# 3. Verify the Installation
python3 --version
# 4. Install pip (Python Package Installer)
sudo apt install python3-pip
# 5. Verify pip Installation
pip3 --version
python3 index.py
Follow these steps to install Python on Windows.
Download Python Installer:
Run the Installer:
Verify Python Installation:
cmd
).python --version
Install pip (Python Package Installer):
Pip is typically installed by default with Python. Verify it using:
pip --version
If pip is not installed, you can manually install it by running:
python -m ensurepip --upgrade
To run your Python script, use the command in Command Prompt:
python index.py