4 Working with variables

Image

What you will learn

In this chapter, you’ll build more Python programs. You’ll discover how programs store data using variables, and you’ll learn how Python manages diverse kinds of data that can be stored by a program. You’ll learn that computers don’t store every value accurately, and you’ll learn how a program can request a value from the user and then do something with it. By the end of this chapter, you’ll be able to create useful programs.

Variables in Python

Working with text

Working with numbers

Weather snaps

What you have learned

Variables in Python

We’ve seen how Python lets us work with numbers and text. We ...

Get Begin to Code with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.