[Episode 1] Self-Taught Developer Diary: "Hello, World!"

[Episode 1] Self-Taught Developer Diary: "Hello, World!"

[Episode 1] Self-Taught Developer Diary: "Hello, World! Installing Python & Writing Your First Code"

Hashtags: #SelfTaughtDeveloper #Day1 #PythonFirstSteps


✏️ Today’s Goals

  1. Install Python
  2. Print "Hello, World!"
  3. Dabble in Variables

🚀 Step 1: Install Python (5 minutes)

"Coding starts with a simple step: installation!"

  1. Visit Python’s Official Website
  2. Click "Downloads" → Select the latest version (e.g., Python 3.12.0)
  3. Check the box for "Add Python to PATH"
  4. After installation, open your terminal (CMD) and type python --version to verify.

⚠️ Troubleshooting Tips

  • PATH setup issues? → Search for "How to set up Python PATH" and follow guides.
  • "Python command not working?" → Reinstall or Google your error message (e.g., "Python installation error [your error]").

🚀 Step 2: Write Your First Code (3 minutes)

"Programming begins when you start typing."

  1. Open Notepad or VS Code
  2. Write this code:
  3. print("Hello, World! 🎉")  
    
    print("I’m going to become a developer!")
  4. Save the file: hello.py (The .py extension is mandatory!)

🚀 Step 3: Run the Code (1 minute)

"Time to make your computer obey!"

  1. Open the terminal (CMD) and navigate to your file’s location:
  2. cd Desktop  # If you saved the file on your desktop
  3. Run the code:
  4. python hello.py
  5. 👉 Result:
  6. Hello, World! 🎉  
    
    I’m going to become a developer!

🚀 Step 4: Variables 101 (5 minutes)

"Variables are just labels for data. Easy peasy!"

  1. Store your name:
  2. name = "Self-Taught Dev"  
    
    print("Hello, " + name + "!")
  3. Simple math:
  4. x = 10  
    
    y = 5  
    
    print("10 + 5 =", x + y)

🔥 Pro Tips

  • Errors are your friends!
    • SyntaxError? → Check missing brackets or quotes.
    • NameError? → Did you mistype a variable name?
  • Google is your lifeline: Search terms like "Python variables tutorial" or "Python print function."

📚 Homework

  1. Blog Post:
    • Title: [Day 1] Installing Python + My First “Hello World”
    • Content: Share your installation journey, code results, and mistakes (e.g., PATH issues).
  2. Create your own variable:
  3. hobby = "gaming"  
    
    print("My hobby is " + hobby + "!")

💬 Next Episode Teaser

[Episode 2] Build a Mini Fortune-Teller with Conditional Statements (if-else + random module)

import random  

luck = random.choice(["Great Luck", "Good Luck", "Bad Luck"])  

print("Today’s Fortune:", luck)

"The first step is the hardest, but you’ve already taken it. Keep going!" 👨💻👩💻

Comments