O'Reilly logo

Python Projects for Kids by Jessica Ingrassellino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required