Data types ¶
As we have seen before in arithmetic and variables , we can use numbers and letters as data. However, you have to pay a little attention to what type of data you are working with because Python stores each data type differently. This determines what you are able able to do with that data, and sometimes the accuracy.
type ¶
Python has a built-in way to tell you what kind of data something is.
This is the
type
function, and you will see it being used below.