learning to code,
answered.
Plain-English guides to the questions every beginner asks, with code you can run right on the page.
python.
8 posts
clear all- pythonguidespython print() examples you can try yourselfTen Python print() examples to run and change: receipts, tables, progress bars, patterns, countdowns, clocks and tidy numbers, each with its output.8 min
- pythonguideswhat a computer program does: 6 examples you can trySix small programs to run in your browser, from a temperature converter to a password checker, each showing the input, memory, working and output inside.8 min
- pythonguideslearning to code as an adult: a practical guideYou are not too old to learn to code. How to fit it around work and family, pick a first language, practise in short sessions and keep going when stuck.9 min
- pythonguidesbuild a Python number guessing game, step by stepBuild a number guessing game in Python one step at a time: a random secret number, input, if and else, a while loop and a count of tries. Full code.9 min
- pythonerrors explainedhow to fix a Python NameError: causes and solutionsNameError means Python met a name it does not know. The usual causes, from typos and missing quotes to imports and scope, and how to fix each one.8 min
- pythonguidesparsing JSON in Python: a practical beginner guideUse json.loads() to turn JSON text into Python dictionaries and lists, then read values with square brackets. Examples, common errors and an exercise.8 min
- pythonguidespython’s print() function explained: a practical beginner guideprint() shows text and values on screen. Learn quotes, commas, sep, end and f-strings, plus the mistakes beginners make, with examples you can run.8 min
- pythonguideswhat does a computer program do? A practical beginner guideA program is a list of instructions a computer follows exactly. See the four jobs every program does, with real examples you can run in your browser.8 min