Skip to content
This is my space, where experience meets the will to start over. This is my space, where experience meets the will to start over.

The first step is knowing where you want to go.

  • Home
  • Coding Hub
    • Software & Project
      • Small Biz Ops – S.B.O.
        • SmallBizOps – Day 10/90
      • CRM/ERP
      • MyTracker
      • My Budget
    • Form Zero to “WoW”
      • JavaScript from Zero (Completed)
        • 2. Remove and Edit List Items
        • 3. Separate HTML and JavaScript, Use addEventListener and Conditional Logic
        • 4. Add Dynamic CSS Classes
        • 5. Save & Restore Your List with localStorage
        • 6 – Turn Your App into a Full To-Do List
      • Python from Zero (Completed)
        • 2. Lists & Loops
        • 3. Conditional Menus
        • 4. Edit & Remove Tasks (with closing: Python vs PHP and Large Data)
        • 5 – Save to File: Make Your Tasks Survive Restarts
        • 6 — Pythin from zero – Final Project Polishing: Numbering, Formatting, and Preparing for CSV
      • Rust – From Zero to “WoW” (Completed)
        • 1 – Setup and Project Structure in Rust
        • 2 – User input: validation and error handling
        • 3 – Rust from Zero to “WoW – BMI Calculation and Conditional Logic
        • 4 –Rust – Clear, Formatted Output
        • 5 – Rust – Final Thoughts: Precision as a Form of Respect
      • Go from Zero to “WoW” (Completed)
        • 1 – Why Go Is Perfect for a Personal Expense Tracker
        • 2 – Logging Expenses and Console Input
        • 3 – Go from Zero to “WoW” – Smart Filtering & Display Logic
        • 4 – Go – Saving Data to Local Files
        • 5 – Go – Final Project – Expense Tracker in Go
      • C++ from Zero to “WoW” (Completed)
        • 1 – Why C++ for file organization?
        • 2 – C++ – File Type Detection and Classification
        • 3 – C++ – Creating & Managing Subfolders
        • 4 – C++ – Safe File Movement and User Feedback
        • 5 – C++ – Order as Mental Clarity
      • Ubuntu – From Zero to “WoW” (Completed)
        • 2 – Ubuntu – The Desktop Environment and Essential Commands
        • 3 – Ubuntu – Managing Files, Folders, and Permissions
        • 4 – Ubuntu – Installing and Updating Software with APT and Snap
        • 5 – Ubuntu – Customizing the Desktop Environment
        • 6 – Ubuntu – Network and Device Configuration
        • 7 – Ubuntu – User Management & System Security — “The Cathedral of Permissions”
        • 8 – Ubuntu – The Talking Machine: Terminal & Bash Scripting
        • 9 – Ubuntu – Ubuntu as a Server or Development Environment
        • 10 – Ubuntu – Backup, Maintenance & Troubleshooting
    • Git Hub Repository
      • Small Biz Ops – S.B.O.
      • Mini ERP – PHP & MySQL
      • CleverCRM (Java, Spring Boot)
      • FraudWatch (Python, FastAPI + scikit-learn)
      • OnboardIQ – Smart Onboarding Portal (Flask + SQLite Demo)
    • ArchPilot
      • 1-Users & Roles, End-to-End (Architecture, Database, and Cross-Framework Code)
      • 2 – Client Registry (CRM) Across Frameworks
      • 3 – Project & Budget Tracker (ERP)
      • 4 – Approval Workflow Engine Multi-step routing, status tracking, escalation paths
      • 5 – Audit Trail & Versioning
    • Small Biz Ops – S.B.O.
  • Vivere in USA
  • P4Y
  • Testi poetici
    • 1 – Sospeso
    • 2 – Il bicchiere di vetro quieto
    • 3 – Quando l’amore inciampa
    • 4 – Ma chi siete davvero?
    • 5 – Above the Thread of Day
    • 6 – The Truth That Doesn’t Exist
    • 7 – All of You, I Miss
    • 8 – The Captain and the Ocean
    • 9 – Between Light and Mist
    • 10 – Il peso delle scelte
  • Contact
  • Admin
This is my space, where experience meets the will to start over.
This is my space, where experience meets the will to start over.

The first step is knowing where you want to go.

Coding – Step 10 – Python from Zero – Lesson 1: Variables, Input, and Simple Logic

Posted on 28 Luglio 202523 Agosto 2025 By Francesco

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:

  1. Install Python
  2. 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?

ConceptDescription
print()Displays a message in the terminal
input()Waits for user input and returns it as text
VariablesWe store values like name and tasks
if / elseLogic 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.

LessonTitleWhat You Will BuildLink
1️⃣Variables, Input & LogicYour first interactive console app (Mini To-Do List with name and tasks)You are here
2️⃣Lists & LoopsStore tasks in a list and display them using loopsClick here!
3️⃣Conditional MenusCreate a command-based menu with options to add, view, and exitClick here!
4️⃣Edit & Remove TasksAdd logic to delete or mark tasks as completeClick here!
5️⃣Save to FileSave your tasks in a .txt file and load them on restartClick here!
6️⃣Final Project PolishingAdd numbering, formatting, and set up for future CSV importClick 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.

Post Views: 553

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Python Coding

Navigazione articoli

Previous post
Next post

Francesco

My name is Francesco Boschi, originally from Italy and currently based in the United States. For over twenty years, I’ve worked as a manager and consultant across diverse sectors — from education and cultural institutions to the food industry — developing skills in operational management, strategic consulting, and complex problem-solving. In recent years, I’ve combined this experience with a strong passion for software development, creating custom tools designed to simplify workflows and meet real business needs.

Relocating to the U.S. marks the beginning of a new chapter: a personal and professional decision driven by the desire to be close to my son and to embrace new challenges in a different environment. Today, my goal is to turn my experience into meaningful solutions, blending strategic vision with technical expertise to help people and organizations work more effectively.

I enjoy moving between different worlds, adapting tools and approaches to people and contexts. I bring leadership, flexibility, attention to detail, analytical thinking, and a strong problem-solving mindset — along with a deep curiosity to learn and grow. Above all, I believe in sharing: I’m always eager to offer my experience to support the growth of others.

Related Posts

Javascript

Coding – Step 9.4 – JavaScript from Zero – Add Dynamic CSS Classes

Posted on 9 Agosto 202517 Agosto 2025

Mark items as complete by toggling CSS classes (and keep the DOM accessible & tidy) 🧠 Why this lesson matters After building the basic To-Do List with menu and core actions, it’s time to make it interactive in the browser. With just a few lines of JavaScript, we can: 🎯…

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More
Coding

Coding – Step 2 – 🔐 Access Project Section

Posted on 6 Giugno 202526 Luglio 2025

In this section of the website, I share practical code examples that help highlight the differences between common web development technologies and structures. Each example is crafted to be clear, educational, and replicable, so anyone can understand the logic and experiment with the source code directly. 📌 Starting with a…

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More
Coding

ArchPilot – Step 5 – Audit Trail & Versioning

Posted on 19 Dicembre 202519 Dicembre 2025

ArchPilot Step 5 demonstrates how Audit Trail & Versioning ensures traceability, compliance, and rollback across ERP/CRM workflows. By implementing event logging and version management in multiple frameworks, it highlights architectural choices and the natural strengths of each ecosystem.

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More

Iscriviti alla nostra Newsletter

🤞 Let's keep in touch

We do not send spam! Read our Privacy policy for more information.

Controlla la tua casella di posta o la cartella spam per confermare la tua iscrizione

Cerca nel sito

©2026 This is my space, where experience meets the will to start over. | WordPress Theme by SuperbThemes