Types:
A type is how Python represents different types of data.
Integers, real numbers, and words can be expressed as different data types.
We can see the actual data type in Python by using the type command. We can have int, which stands for an integer and float that stands for float, essentially a real number. The type string is a sequence of characters.
You can change the type of the expression in Python, this is called typecasting.You can convert an int to a float.If a string contains an integer value, you can convert it to int.You can convert an int to a string or a float to a string. Boolean is another important type in Python. A Boolean can take on two values. The first value is True, just remember we use an uppercase T. Boolean values can also be False with an uppercase F. Using the type command on a Boolean value, we obtain the term bool. This is short for Boolean, if we cast a Boolean True to an integer or float, we will get a 1. If we cast a Boolean False to an integer or float, we get a 0. If you cast a 1 to a Boolean, you get a True. Similarly, if you cast a 0 to a Boolean, you get a False.