[Episode 1] Self-Taught Developer Diary: "Hello, World! Installing Python & Writing Your First Code"
Hashtags: #SelfTaughtDeveloper #Day1 #PythonFirstSteps
✏️ Today’s Goals
- Install Python
- Print "Hello, World!"
- Dabble in Variables
🚀 Step 1: Install Python (5 minutes)
"Coding starts with a simple step: installation!"
- Visit Python’s Official Website
- Click "Downloads" → Select the latest version (e.g., Python 3.12.0)
- Check the box for "Add Python to PATH" ✅
- After installation, open your terminal (CMD) and type
python --versionto 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."
- Open Notepad or VS Code
- Write this code:
- Save the file:
hello.py(The.pyextension is mandatory!)
print("Hello, World! 🎉")
print("I’m going to become a developer!")
🚀 Step 3: Run the Code (1 minute)
"Time to make your computer obey!"
- Open the terminal (CMD) and navigate to your file’s location:
- Run the code:
- 👉 Result:
cd Desktop # If you saved the file on your desktop
python hello.py
Hello, World! 🎉
I’m going to become a developer!
🚀 Step 4: Variables 101 (5 minutes)
"Variables are just labels for data. Easy peasy!"
- Store your name:
- Simple math:
name = "Self-Taught Dev"
print("Hello, " + name + "!")
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
- Blog Post:
- Title: [Day 1] Installing Python + My First “Hello World”
- Content: Share your installation journey, code results, and mistakes (e.g., PATH issues).
- Create your own variable:
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
Post a Comment