Day 2 — Installing Python and Writing Your First “Hello, World!” Program

Day 2 — Installing Python and Writing Your First “Hello, World!” Program

Python in 30 Days: A Practical and Theoretical Approach for Beginner.

Day 2: Installation of Python and the creation of a simple Python program.

image 36 Simply Creative Minds

Installing Python:

  • Windows: Download Python from python.org, run the installer, and make sure to add Python to the system PATH.
  • macOS: Download and install Python from python.org.
  • Linux (Ubuntu): Install Python using the sudo apt install python3 command.

Verifying Python Installation:

  • Open a terminal/command prompt and check Python’s version using the command python --version (or python3 --version on some systems).

Online Live Python Editors (no installation required)

TrinketTrinket allows you to code in Python directly in your browser. It’s an interactive, web-based Python editor.

We can run Python code and even share your projects with others.

2. PythonAnywherePythonAnywhere is an online Python environment where you can write and execute Python scripts. It’s great for beginners and allows you to run Python code in the browser.

Which to choose?

  • For local development, if we prefer using your computer without needing an internet connection, IDLEJupyter Notebooks, or VS Code with the Python extension are great choices.
  • For online development, if you want to start coding instantly in a live, interactive environment, ReplitGoogle Colab, and Trinket are solid options.

Setting Up Your First Python Script

Step 1–We will use today https://hourofpython.trinket.io

Open URL

Step 2 — Edit the main.py and add below code

print(“Hello, World!”)

image 5 Simply Creative Minds

Step 3 — Click on Run button

Hello, World! 
// will be printed in the right window
image 6 Simply Creative Minds

Happy Coding and Stay Tuned 🙂

Kind is always cool !!!

Share knowledge to gain knowledge !!!!

Be kind and treat people with respect !!!

If you find my blog helpful, then please subscribe, claps and follow to support 🙂

image 35 Simply Creative Minds

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *