Python for Absolute Beginners: A 2-Page Quick Start Guide
What is Python? Python is a powerful, beginner-friendly programming language known for
its clean syntax and readability. It is widely used in web development, data science,
automation, artificial intelligence, and more. Python is an interpreted language, which means
code is executed line-by-line, making debugging easier.
Why Learn Python?
Simple Syntax: Looks like English, easy to understand
Versatile: Web, games, automation, AI, data analysis
Huge Community: Lots of tutorials, libraries, and support
High Demand: Python developers are in demand across the globe
Setting Up Python
1. Online: Use websites like replit.com or Google Colab
2. Offline: Download from python.org
o Install Python (version 3.x)
o Use an IDE like Thonny, PyCharm, or VS Code
Basic Syntax print("Hello, World!")
Use print() to display output
No semicolons or curly braces required
Variables and Data Types name = "John" distance = 12.5 age = 16 is_student = True
Python is dynamically typed (no need to declare type)
Input and Output name = input("Enter your name: ") print("Welcome,", name)
If-Else Conditions age = int(input("Enter your age: ")) if age >= 18: print("You are an adult")
else: print("You are a minor")
Loops
For loop
for i in range(5): print("Hello")
While loop
count = 0 while count < 3: print("Counting:", count) count += 1
Functions def greet(name): print("Hello,", name)
greet("John")
Lists fruits = ["apple", "banana", "mango"] print(fruits[1]) # Output: banana
Your First Project Ideas
Calculator
To-Do List
Rock, Paper, Scissors Game
Flashcard Quiz App
Timer or Stopwatch