The type() Function
At any time, we can find out the data type held by a specific variable at a given moment using the
function
type(variable_name).
The
type function receives the value of the variable
x as
an argument and returns the
data type held by the variable as a result.
That's about all you need to know about data types for now.
You have learned about the data types, understanding their distinct characteristics and how to use them in Python.
It's time to test your knowledge with a quiz, so you can reinforce what you've learned and ensure you have a solid grasp of these fundamental concepts.
Congratulations!
The lesson is now over.