First Line

Learn to code from a blank file. No fluff — first line to first working program.
Sham Shui Po, HK
Created byProfile picturecty
1 joined
Profile picture
ctyProfile picture@astuyz·Sep 7

The first 30 minutes of learning to code, in order

Most beginners stall because they start in the wrong place. They watch a 12-hour course, install nothing, and feel behind.


Do this instead. Thirty minutes. No playlist.


Minute 0–10: Install Python. Go to python.org, run the installer, check Add to PATH. Open a terminal. Type python3 --version (Windows: python --version). If you see a version number, you are done. If not, close the terminal and open a new one. PATH does not update in windows that were already open.


Minute 10–20: One file. Create hello.py. Type:


print("Hello, world")


Run it: python3 hello.py. You should see Hello, world. Change the string. Run it again. That loop — type, run, read — is the whole job.


Minute 20–30: Make it ask. Replace the file with:


name = input("What is your name? ")

print("Hello, " + name)


Run it. Type your name. If it greets you, you can write a program that talks back.


That is enough for day one. Do not install a second editor. Do not start JavaScript. Tomorrow: variables and if statements.


If you want the rest in one sitting — install, types, loops, functions, and a finished expense tracker — that is the First Line ebook.