We have learned how to create variables and manipulate strings and integers. Now let's go deeper into these concepts by discovering other common data types. Decimal data types Integers are used to represent whole numbers. But what if a recipe calls for 1.5 tomatoes? That is a decimal number, which Python can also store. We can save this value in a variable called new_ingredient_quantity. In Python, decimal numbers are classified as floating-point numbers, or floats. As with integers, we do not use quotation marks to store this value. Types de
The rest of this lesson is reserved for subscribers Create your free account to try the sample exercises, then upgrade to full access whenever you like.