Welcome to the first real Python lesson — where you’ll build a mini console app using real code, logic, and user input.
No theory-only content here: we learn by writing and running code immediately.
📚 What You’ll Learn
✅ How to use print() and input()
✅ How to store and use variables
✅ How to check if a value exists (if condition)
✅ How to work with text and numbers (str, int)
✅ How to create a basic interactive program
🧰 What You Need
If you haven’t already:
- Install Python
- Recommended editor: Thonny for total beginners
(or Notepad++ if you prefer editing + terminal)
🎯 What Are We Building Today?
A simple Python script where:
- The user enters their name
- Then lists 3 things they want to do today
- The app checks what’s empty and warns if nothing was typed
- Then prints a clean, stylized summary
It’s basic, but real logic — and a perfect starting point.
🔣 Let’s Break It Down – Step by Step
🪧 Step 1 – Greet the user
print("Welcome to your personal To-Do Assistant!")
Shows a welcome message in the terminal.
🙋 Step 2 – Ask for their name
name = input("What's your name? ")
This reads what the user types and stores it in a variable called name.
✅ Step 3 – Confirm name
if name.strip() == "":
print("You didn't enter a name... but we'll continue anyway!")
else:
print(f"Nice to meet you, {name}!")
Here we’re using a conditional statement (if) to check if the user skipped the name..strip() removes spaces and tabs — so " " becomes "".
📝 Step 4 – Ask for 3 tasks
print("\nEnter 3 things you want to do today:")
task1 = input("1: ")
task2 = input("2: ")
task3 = input("3: ")
We’re storing 3 different tasks in 3 separate variables.
We’ll use lists in Lesson 2 — but this is a great start.
📋 Step 5 – Display results
print("\nHere’s your personalized To-Do List:")
if task1.strip(): print(f"🟢 1. {task1}")
else: print("🔴 1. [Empty]")
if task2.strip(): print(f"🟢 2. {task2}")
else: print("🔴 2. [Empty]")
if task3.strip(): print(f"🟢 3. {task3}")
else: print("🔴 3. [Empty]")
We check whether each task was actually typed.
This builds conditional output, depending on what the user entered.
🧼 Step 6 – Thank and exit
print("\nYou're ready to take action. Good luck!")
Simple closing message.
🧾 Full Code Recap (Copy-Paste Ready)
print("Welcome to your personal To-Do Assistant!")
# Get the user's name
name = input("What's your name? ")
# Check if name is empty
if name.strip() == "":
print("You didn't enter a name... but we'll continue anyway!")
else:
print(f"Nice to meet you, {name}!")
# Ask for tasks
print("\nEnter 3 things you want to do today:")
task1 = input("1: ")
task2 = input("2: ")
task3 = input("3: ")
# Show the list
print("\nHere’s your personalized To-Do List:")
if task1.strip(): print(f"🟢 1. {task1}")
else: print("🔴 1. [Empty]")
if task2.strip(): print(f"🟢 2. {task2}")
else: print("🔴 2. [Empty]")
if task3.strip(): print(f"🟢 3. {task3}")
else: print("🔴 3. [Empty]")
print("\nYou're ready to take action. Good luck!")
🔍 What Concepts Did You Learn?
| Concept | Description |
|---|---|
print() | Displays a message in the terminal |
input() | Waits for user input and returns it as text |
| Variables | We store values like name and tasks |
if / else | Logic that makes decisions based on input |
.strip() | Removes extra spaces from user input |
| Text symbols (🟢, 🔴) | Adds visual feedback (optional but fun!) |
🧭 Learning Path – Python from Zero
Below is the full roadmap of this series. Each lesson builds on the previous one, step by step.
| Lesson | Title | What You Will Build | Link |
|---|---|---|---|
| 1️⃣ | Variables, Input & Logic | Your first interactive console app (Mini To-Do List with name and tasks) | You are here |
| 2️⃣ | Lists & Loops | Store tasks in a list and display them using loops | Click here! |
| 3️⃣ | Conditional Menus | Create a command-based menu with options to add, view, and exit | Click here! |
| 4️⃣ | Edit & Remove Tasks | Add logic to delete or mark tasks as complete | Click here! |
| 5️⃣ | Save to File | Save your tasks in a .txt file and load them on restart | Click here! |
| 6️⃣ | Final Project Polishing | Add numbering, formatting, and set up for future CSV import | Click here! |
⚖️ Disclaimer
Disclaimer:
Software names and tools (Python, Thonny, Notepad++, etc.) mentioned here are trademarks of their respective owners. This content is provided for educational purposes only and is not affiliated with or endorsed by those entities.Always use official sources when downloading or installing any software.
