What will be the output of the following Python program?

x = 10
print(type(x).__name__)
                        

Options

  • A. float
  • B. str
  • C. int
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. int

Detailed Explanation

The type() function returns the type of an object. The variable x contains an integer.