Which Python built-in function would you use to find the type of a variable?

  • datatype()
  • gettype()
  • type()
  • typeof()

In Python, the type() function is used to find the type of a variable. For example, type(x) will return the type of the variable x. The other options are not valid Python functions for this purpose.

Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *