Write Your First Python Script: A Beginner’s Guide

Python’s Official Image

1. What is Python?

Python is a popular, beginner-friendly programming language used for web development, data analysis, automation, AI, and more. It’s known for its simple, readable syntax — making it easy for anyone to learn.

2. Where to Run Python

You can write and run Python code in:

  • The Command Line/Terminal — run python or python3
  • A Code Editor (like VS Code, Sublime, or PyCharm)
  • Online Interpreters (like Replit or Google Colab)

3. Python Data Categories

When you write your first script, you’ll use basic data types:

  1. Strings — text inside quotes, like "Hello, World!"
  2. Numbers — integers (10), floats (3.14), or complex numbers (2 + 3j)
  3. BooleansTrue or False values

This is a simple Python script

String
name = "Alice"

Number
age = 25

Boolean
is_student = True

print("Name:", name)
print("Age:", age)
print("Is student?", is_student)

See the next post.

And also you can find more on this link.

Scroll to Top