Chapter 2. Variables, Functions, and Users

In the previous chapter, you learned how to install Python on your computer. You also learned how to use the print statement in Python and printed some messages using your Python shell. We are now going to jump into a lot of details so that we can build our first project together. It will include the following:

  • Variables
  • Variable names
  • Strings, integers, and floats
  • Functions

Variables

A variable is when one letter or word is used to represent a different letter, word, number, or value. One way to think of a variable is to imagine that you are programming a computer so that it can make memories. For example, my name is Jessica. If I am writing a computer program and I want that program to remember my name, I ...

Get Python Projects for Kids 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.