Skip to content

Data Types and Variables

Introduction

Python has many built-in data types. These include integers, floats, booleans, strings, and lists.

By the end of this chapter you will be able to:

  • Explain the difference between Python's built-in data types

  • Define variables with the assignment operator =

  • Create variables with different data types

  • Use Python's type() function to determine an object's type

  • Complete logical evaluations of variables

  • Convert variables from one data type to another