What is the output of `type(3.14)`?

Python Developer Easy

Python Developer — Easy

What is the output of `type(3.14)`?

Key points

  • The `type()` function in Python returns the data type of the argument passed to it.
  • In this case, `3.14` is a float number, so the output will be .
  • It's important to understand how to determine the data type of a value in Python.

Ready to go further?

Related questions