Variables and Data Types
Building on what was taught in the Programming in Python mission, you will continue to build and refine your Python programming skills by learning about variables and data types. Python variables are an important programming concept to know moving forward because they allow you to store values to it so you can refer to the value using the variable you store the value to.
In this mission, you’ll learn how to save values using variables and update variables, and how to work with numerical and text data. You’ll also learn about the two types of numerical data types in Python, integer and float, and how to convert from one type of numerical data type to another using either `int()` or `float()`. Toward the end of the mission, you’ll learn how to manipulate text or string data. As you learn about strings, you’ll learn how to link or concatenate two or more strings together to form a single string. Working with strings and being able to manipulate them is part of data cleaning, a crucial skill for data scientists to have, as real-world data from datasets isn’t always the cleanest. You’ll learn more about working with strings in future missions as well as in our data cleaning advanced course.
While learning about Python variables and data types, you’ll work with mobile app store data and company’s mottoes to practice storing data to variables and further strengthen your ability to code in the Python programming language.
- Learn how to save values using variables.
- Learn how to update variables.
- Learn how to work with numerical data.
- Learn how to work with text data.
- Saving Values
- Variable Names
- Updating Variables
- Syntax Shortcuts
- Integers and Floats
- Conversion Between Types
- Escaping Special Characters
- String Operations
- Next steps