livepython.net
CHAPTER 01Introduction to Python
1.5  PRACTICE

Chapter 1 Practice: Your First Python Programs

Chapter 1 Recap

Well done: you finished chapter 1! Here is everything you learned, in one table.

WordWhat it means
ProgramA list of clear steps a computer follows, in order
ProgrammerThe person who writes, runs and fixes programs
BugA mistake in a program; fixing it is debugging
Programming languageWords and rules people write and computers can be made to understand
SyntaxThe grammar of a programming language
.py fileA plain text file that holds Python code
InterpreterThe program that checks your code, then runs it
print("…")Shows the text inside the quotes on the screen
ErrorPython's message when it can't go on; it shows the line and the kind of problem

Now put it into practice. Press Next to see this chapter's practice questions. Write each program yourself, press Run to try it, and Submit when you're ready.

Every big program starts with one small line. You've written yours.

Practice: Practice

Solve these to lock in what you learned in this topic. Each one runs in your browser.

  1. 1.Python Program to Print Hello WorldEasySolve
  2. 27.Python Program to Print a Welcome MessageEasySolve