Skip to main content
  • Python is available now. All other compilers are coming soon.

    Python
  • Popular Tutorials

    • Getting Started With Python
    • Python if Statement
    • while Loop in Python
    • Python Lists
    • Dictionaries in Python
    All Python Tutorials

    Reference Materials

    Built-in FunctionsList MethodsDictionary MethodsString Methods
    View all

Online Compilers

  • Python Compiler
  • Python Playground
  • Python Projects
  • Exercises

Tutorials

  • Learn Python
  • Python for Beginners
  • Variables and Types
  • Python Strings
  • Python Lists
  • Python If Else
  • Python For Loops
  • Python Functions
  • Python Classes

Examples

  • Python Examples
  • Hello World
  • Add Two Numbers
  • Even or Odd
  • Factorial
  • Fibonacci
  • Prime Check
  • Palindrome Check

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Use
  • Disclaimer

© 2026 ILoveCompiler. All rights reserved.

  1. Home
  2. Python Tutorial
  3. Python Introduction: What Python Is and How to Run It

Getting started · Tutorial 1

Python Introduction: What Python Is and How to Run It

Learn what Python is, why it is popular, and how to run your first Python program directly in your browser with ILoveCompiler.

Open the compilerPractice exercises
beginner7 min readUpdated November 19, 20263 learning goals
On this page
  1. What makes Python different?
  2. How the browser compiler works
  3. Your turn
  4. Key ideas to remember

What you will learn

  • Explain what Python is used for
  • Identify the difference between source code and output
  • Run a first program in the browser compiler

Python is a general-purpose programming language known for readable syntax and a large standard library. It is used for web development, data analysis, automation, scientific computing, machine learning, and teaching.

This tutorial assumes no programming experience. You will write a short program, run it, and learn how the parts of the page fit together.

What makes Python different?#

Python uses indentation to show blocks of code, and its syntax is designed to be close to plain English. A complete program can be a single line:

Python
print("Hello, World!")

The line calls the built-in print() function. The text inside the quotes is a string, a value that stores characters. Running the program writes the text to standard output.

Code and output are different

Source code is what you write. Output is what the program produces when it runs. The editor shows the first; the console shows the second.

How the browser compiler works#

ILoveCompiler runs CPython compiled to WebAssembly inside a dedicated Web Worker. The first visit downloads the runtime, which can take a few seconds. After that, runs are fast and local.

  1. Write Python in the editor.
  2. Press Run (or Ctrl/Cmd + Enter).
  3. Read the result in the Output panel.
  4. Use the Errors panel to inspect tracebacks.

Your code is not uploaded to a server for execution. Drafts are stored in your browser's local storage.

Your turn#

Replace the code in the editor with this program and run it:

Python
name = "ILoveCompiler"
print("Hello from", name)
print("Python is running in my browser.")
Expected output

Hello from ILoveCompiler Python is running in my browser.

If you see an error, check for missing quotes or parentheses. Python reports the line where it noticed the problem in the Errors panel.

Key ideas to remember#

  • Python programs are made of statements, usually one per line.
  • Strings are written inside single or double quotes.
  • print() displays values.
  • Indentation matters when you start using blocks such as if and for.

Next, learn how print() works in more detail and how to leave notes with comments.

Try it yourself

Open the compiler, change the greeting, and run it again. Experimenting with small changes is the fastest way to build confidence.

Next tutorialPython print() and Comments

Related tutorials

beginner

Python print() and Comments

Learn how to display text and values with print(), control separators and line endings, and document code with comments.

6 min read
beginner

Python Variables and Data Types

Understand variables, assignment, dynamic typing, and the core built-in types: str, int, float, bool, and None.

8 min read

On this page

  1. What makes Python different?
  2. How the browser compiler works
  3. Your turn
  4. Key ideas to remember

Run the examples

Every Python block has a Run in compiler button that opens the code in a new tab.