Posted on DataWiz Vamshi
Python is one of the most beginner-friendly programming languages, widely used in data analytics, automation, web development, and AI. In this first post of our Python Basics series, we'll write our very first Python program and understand what's happening behind it.
Python is a high-level, easy-to-read programming language. "High-level" means you write instructions closer to plain English, and Python handles the complex machine-level work for you.
Every programmer's first program is usually the same one:
print("Hello, World!")
Output
Hello, World!
print() is a built-in Python function that displays whatever is inside its parentheses on the screen." " or ' ') is called a string.print("Welcome to DataWiz Vamshi")
print("Let's learn Python step by step")
Output
Welcome to DataWiz Vamshi Let's learn Python step by step
print() statement automatically moves to a new line after running.Instead of typing text directly, we can store it in a variable and reuse it.
brand_name = "DataWiz Vamshi"
print("Welcome to", brand_name)
Output
Welcome to DataWiz Vamshi
brand_name is a variable — a name that stores a value in memory.print() lets you combine text and variables in one line.name = input("Enter your name: ")
print("Hello,", name, "! Welcome to Python.")
Sample Input
Vamshi
Output
Hello, Vamshi ! Welcome to Python.
input() pauses the program and waits for the user to type something.name variable.| Method | Best For |
|---|---|
| Basic print() | Learning output basics |
| Multiple Lines | Understanding sequential execution |
| Variables | Reusable, dynamic content |
| User Input | Interactive programs |
print() displays output, and input() collects it — these two functions are the foundation of interaction in Python.Next up: Day 2 — Python Data Types (int, float, string, boolean).
0 Comments