Python is a powerful, versatile, high-level, interpreted, object-oriented programming language, driving innovation across data science, web development, and automation. Valued for its clean syntax and rapid development cycle, Python is the go-to language for readability and efficiency across almost every domain.
This repository features structured Python programs, organized by concept and module, making it ideal for learning or quick reference.
- Dictionaries
- For Loop
- Functions
- If-Else-Elif Statements
- Keywords and Identifiers
- Lists
- Sets
- Strings
- Tkinter
- Try-Except-Finally Statements
- Tuples
- While Loop
To get a local copy of this repository, follow these steps:
- Run the
git clonecommand to make a copy of this repository on your local machine:git clone [https://github.com/rh3nium/Python](https://github.com/rh3nium/Python)
- Navigate to the folder:
cd Python - Run any Python file using the interpreter:
python filename.py # OR (depending on your system configuration) python3 filename.py
To execute Python programs on your computer, you need the Python Interpreter.
- Visit the official Python website's Downloads page: https://www.python.org/downloads/
- Choose the correct Python version for your device.
- Click the 'Download Python' button.
- Open the downloaded file and go through the installation process. (Note: On Windows, ensure you check the box to "Add Python to PATH").
- Run the Python IDLE application or use your preferred text editor/IDE.
Verification: After installation, verify by running the following command in your Terminal or Command Prompt:
bash python --version # OR python3 --version
You are now ready to write and execute Python programs.
If you prefer using Visual Studio Code (VS Code), follow these additional steps for a seamless development experience:
- Install VS Code: Download and install VS Code from the official website.
- Install the Python Extension: Open VS Code and install the official Python Extension developed by Microsoft. This extension provides features like IntelliSense, debugging, and code formatting.
- Run Code: Open a Python file (
.py) in VS Code and click the Run button (a small triangle icon) in the top right corner, or use the shortcutCtrl + F5to execute the script in the integrated terminal.