7INTEGERS, FLOATS, AND STRINGS

image

In this chapter, you’ll learn the difference between expressions and statements, discover how to assign values to variables, and become familiar with the most common types of data in Python: integers, floats, and strings. In the process, you’ll likely be surprised by how much programming you can accomplish using simple mathematical operations.

While working through this and the following chapters, I recommend running the code examples rather than just reading them. Typing in the commands will help you to remember them and reduce any apprehension you might feel about coding. I’ll be using the console and text editor ...

Get Python Tools for Scientists 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.