A

Admin • 833K Points
Coach

Q. What will the following Python code output: print(type(3.14))?

  • (A) <class 'int'>
  • (B) <class 'float'>
  • (C) <class 'complex'>
  • (D) <class 'str'>
  • Correct Answer - Option(B)
  • Views: 26
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

3.14 is a float, so the output will be '<class 'float'>'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.