Book Image

Getting Started with Python and Raspberry Pi (Redirected from Learning Python By Developing Raspberry Pi Applications)

By : Dan Nixon
Book Image

Getting Started with Python and Raspberry Pi (Redirected from Learning Python By Developing Raspberry Pi Applications)

By: Dan Nixon

Overview of this book

Table of Contents (18 chapters)
Getting Started with Python and Raspberry Pi
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Understanding Control Flow and Data Types

Now that we are able to run Python code, we will take a look at some of the ways in which we can store data and control the flow of execution through the Python code.

In this chapter, we will cover:

  • The basics of data types in Python

  • Using the math module for operations on numerical types

  • Using the tring module for string manipulation

As mentioned earlier, all the code used in this chapter is written for Python 2.7, and is able to be executed on any Python 2.7 interpreter.