Skip to content

Latest commit

 

History

History

HelloWorld

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

HelloWorld Python Example 🌟

Python HelloWorld

Welcome to the HelloWorld Python Example repository! This project contains a basic Python script designed to demonstrate fundamental Python syntax by printing a simple message to the console. This example is perfect for beginner Python programmers.

خوش آمدید به مخزن HelloWorld Python Example! این پروژه شامل یک اسکریپت ساده پایتون است که برای نمایش ساختار اولیه زبان پایتون طراحی شده است و پیغام ساده‌ای را به کنسول چاپ می‌کند. این مثال برای مبتدیان پایتون مناسب است و به عنوان یک راهنمای مقدماتی برای برنامه‌نویسی با پایتون عمل می‌کند.

Navigation

English Version

Overview

Welcome to the HelloWorld Python Example repository! This project contains a basic Python script designed to demonstrate fundamental Python syntax by printing a simple message to the console. This example is perfect for beginner Python programmers and serves as an introductory tutorial to Python programming.

Folder Contents

  • HelloWorld.py: A minimal Python script that outputs the message "Hello, World!" to the console.

How to Use

To run the HelloWorld.py script, follow the instructions below for different environments.

Running on Windows 🖥️

  1. Open Command Prompt:

    • Press Win + R, type cmd, and press Enter.
  2. Navigate to the Directory:

    • Use the cd command to change to the directory containing HelloWorld.py. For example:
      cd path\to\your\python-repository\HelloWorld
  3. Run the Script:

    • Execute the script using Python:
      python HelloWorld.py
    • Ensure Python is installed and added to your system's PATH.

Running on macOS/Linux 🖥️

  1. Open Terminal:

    • Find Terminal in your Applications folder (macOS) or search for it (Linux).
  2. Navigate to the Directory:

    • Use the cd command to change to the directory containing HelloWorld.py. For example:
      cd path/to/your/python-repository/HelloWorld
  3. Run the Script:

    • Execute the script using Python:
      python3 HelloWorld.py
    • Ensure Python 3 is installed and accessible from your PATH.

Using PyCharm 🧑‍💻

  1. Open PyCharm:

    • Launch the PyCharm IDE.
  2. Open the Project:

    • Go to File > Open and select the HelloWorld directory.
  3. Locate the Script:

    • In the Project Explorer pane on the left, find and click on HelloWorld.py.
  4. Run the Script:

    • Right-click on HelloWorld.py and select Run 'HelloWorld'.
    • The output will appear in the Run tool window at the bottom.

Using Visual Studio Code (VSCode) 🧑‍💻

  1. Open Visual Studio Code:

    • Launch VSCode.
  2. Open the Folder:

    • Go to File > Open Folder and select the HelloWorld directory.
  3. Open the Script:

    • In the Explorer pane on the left, click on HelloWorld.py to open it in the editor.
  4. Run the Script:

    • Via Terminal:
      • Open a new terminal in VSCode by going to Terminal > New Terminal, then run:
        python HelloWorld.py
    • Via Play Button:
      • If you have the Python extension installed, you can click the green play button in the top right corner of the editor to run the script.

Requirements

  • Python 3.x: Ensure Python 3.x is installed on your system.
  • IDE/Text Editor: PyCharm or VSCode is recommended for a better development experience.

Repository Topics

Add relevant topics to help others find this project:

  • python
  • beginner
  • tutorial
  • example
  • hello-world

Contact

For any questions or feedback, please contact me at hamedgharghi1@gmail.com.


نسخه فارسی

مروری بر پروژه

خوش آمدید به مخزن HelloWorld Python Example! این پروژه شامل یک اسکریپت ساده پایتون است که برای نمایش ساختار اولیه زبان پایتون طراحی شده است و پیغام ساده‌ای را به کنسول چاپ می‌کند. این مثال برای مبتدیان پایتون مناسب است و به عنوان یک راهنمای مقدماتی برای برنامه‌نویسی با پایتون عمل می‌کند.

محتویات پوشه

  • HelloWorld.py: یک اسکریپت ساده پایتون که پیغام "Hello, World!" را به کنسول چاپ می‌کند.

نحوه استفاده

برای اجرای اسکریپت HelloWorld.py، مراحل زیر را برای محیط‌های مختلف دنبال کنید.

اجرای اسکریپت در ویندوز 🖥️

  1. باز کردن Command Prompt:

    • کلیدهای Win + R را فشار دهید، cmd را تایپ کنید و Enter را بزنید.
  2. رفتن به دایرکتوری:

    • از دستور cd برای تغییر به دایرکتوری حاوی HelloWorld.py استفاده کنید. برای مثال:
      cd path\to\your\python-repository\HelloWorld
  3. اجرای اسکریپت:

    • اسکریپت را با استفاده از Python اجرا کنید:
      python HelloWorld.py
    • اطمینان حاصل کنید که Python نصب شده و به PATH سیستم شما اضافه شده است.

اجرای اسکریپت در macOS/Linux 🖥️

  1. باز کردن Terminal:

    • Terminal را در پوشه Applications (macOS) پیدا کنید یا جستجو کنید (Linux).
  2. رفتن به دایرکتوری:

    • از دستور cd برای تغییر به دایرکتوری حاوی HelloWorld.py استفاده کنید. برای مثال:
      cd path/to/your/python-repository/HelloWorld
  3. اجرای اسکریپت:

    • اسکریپت را با استفاده از Python اجرا کنید:
      python3 HelloWorld.py
    • اطمینان حاصل کنید که Python 3 نصب شده و از PATH شما قابل دسترسی است.

استفاده از PyCharm 🧑‍💻

  1. باز کردن PyCharm:

    • IDE PyCharm را راه‌اندازی کنید.
  2. باز کردن پروژه:

    • به File > Open بروید و دایرکتوری HelloWorld را انتخاب کنید.
  3. یافتن اسکریپت:

    • در پنل Project Explorer در سمت چپ، روی HelloWorld.py کلیک کنید.
  4. اجرای اسکریپت:

    • روی HelloWorld.py کلیک راست کرده و گزینه Run 'HelloWorld' را انتخاب کنید.
    • خروجی در پنجره Run در پایین ظاهر خواهد شد.

استفاده از Visual Studio Code (VSCode) 🧑‍💻

  1. باز کردن Visual Studio Code:

    • VSCode را راه‌اندازی کنید.
  2. باز کردن پوشه:

    • به File > Open Folder بروید و دایرکتوری HelloWorld را انتخاب کنید.
  3. باز کردن اسکریپت:

    • در پنل Explorer در سمت چپ، روی HelloWorld.py کلیک کنید تا در ویرایشگر باز شود.
  4. اجرای اسکریپت:

    • از طریق Terminal:
      • یک ترمینال جدید در VSCode باز کنید با رفتن به Terminal > New Terminal و سپس اجرا کنید:
        python HelloWorld.py
    • از طریق دکمه Play:
      • اگر افزونه Python را نصب کرده‌اید، می‌توانید روی دکمه سبز Play در گوشه بالا سمت راست ویرایشگر کلیک کنید تا اسکریپت را اجرا کنید.

نیازمندی‌ها

  • Python 3.x: اطمینان حاصل کنید که Python 3.x روی سیستم شما نصب شده است.
  • IDE/ویرایشگر متنی: PyCharm یا VSCode برای تجربه بهتر توسعه توصیه می‌شود.

برچسب‌های مخزن

برچسب‌های مربوطه را اضافه کنید تا به دیگران کمک کند این پروژه را پیدا کنند:

  • python
  • beginner
  • tutorial
  • example
  • hello-world

تماس

برای هرگونه سوال یا بازخورد، لطفاً با من تماس بگیرید به hamedgharghi1@gmail.com.