Lesson 6. Capstone project: your first Python program—convert hours to minutes

After reading lesson 6, you’ll be able to

  • Read your first programming problem
  • Walk through two possible solutions
  • Write your first Python program

Here are some of the main ideas you should be familiar with so far:

  • Programs are made up of a sequence of statements.
  • Some statements initialize variables.
  • Some statements can be expressions to do calculations.
  • Variables should be given descriptive and meaningful names, especially to help future programmers who might be looking at the code.
  • Some calculations you’ve seen so far are addition, subtraction, multiplication, division, remainder, and power.
  • You can convert an object to a different type.
  • The print command can ...

Get Get Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.