gagan Soti       May 9, 2026      18

What is the correct syntax to output the type of a variable or object in Python?

  1. print(type(x))
  2. print(typeof x)
  3. print(typeof(x))
  4. print(typeOf(x))

The Right Answer is : Option A

Explanation