ariafatah0711 / python_aria

learn python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python_aria

The file that I studied while learning Python consists of several Python folders and files. It also contains various fundamental information about Python, such as data types, conditional statements, functions, classes, modules, and more.

introductiontable of contentsDownloadRelatedLicense

🚀 introduction

"In my journey as a Python developer, I have explored a comprehensive file encompassing the fundamental building blocks of Python development. This file equips me not only with essential Python programming languages but also serves as a treasure trove of invaluable Python-related information and references. This amalgamation of knowledge has been instrumental in shaping my understanding of Python development, making it an indispensable asset in my quest to master the art of creating Python experiences."

python

📋 Table of Contents

Installing Python in Visual Studio Code
  1. Install Visual Studio Code
  2. Install Python
    • install in linux
      sudo apt install python3
    • Ensure that Python is installed on your system. You can check by running the following command in your terminal or command prompt:
      python --version
    If Python is not installed, download it from the official Python website and follow the installation instructions.
  3. Install Python Extension in VS Code
    • Open Visual Studio Code.
    • On the left, click on the "Extensions" icon (the square icon).
    • Search for "Python" in the search bar, and select the "Python" extension developed by Microsoft. Click "Install" to install it.
  4. Using Python in VS Code
    • Open your Python project or create a new one in VS Code.
    • Create a new Python file or open an existing one.
    • You can now write and run Python code directly from VS Code.
  5. Setting Up a Virtual Environment (Optional)
    • It's recommended to create a virtual environment for your project. You can do this by running the following command in your terminal:
      python -m venv venv
  6. Installing Dependencies (Optional)
    • If your project requires dependencies, you can install them using the following command in the VS Code terminal:
      pip install package_name

You are now ready to start developing Python applications in Visual Studio Code. Make sure to customize this information to fit your project's needs.

Installing Package with pip
  1. installing package
    • Pip is a package manager for Python that allows you to easily install and manage Python packages and dependencies.
    • To install a package, use the following command:
      pip install package_name
    • pip install package_name
      pip uninstall package_name
    • To list installed packages, use:
      pip list
    • To freeze the installed packages (useful for requirements files), use:
      pip freeze > requirements.txt
    • To display detailed information about a package, use:
      pip show package_name
    • To search for a specific package, use:
      pip search package_name
Creating and activating a Virtual Environment
  1. creating env
    • It's recommended to create virtual environments to isolate your Python projects. Here's how to create and activate a virtual environment:
    • Create a virtual environment by running:
      python -m venv name_of_environment
  2. Activate the virtual environment
    • On Linux and macOS:
      source name_of_environment/bin/activate
    • On Windows:
      .\name_of_environment\Scripts\activate
  3. To Deactive the virtual environment
    • To deactivate the virtual environment, simply run:
      deactivate

🔨 download

  1. Open a terminal or command prompt on your computer.
  2. Navigate to the directory where you want to save this project.
  3. Use the following command to download the project from the GitHub repository:
git clone https://github.com/ariafatah0711/python_aria.git

📈 related

©️ license

About

learn python

License:MIT License


Languages

Language:Python 100.0%