What is the output? python x = 20.5 print(type(x))

  1. <class 'int'
  2. <class 'float'
  3. <class 'str'
  4. <class 'double'
Answer

B) <class 'float'

20.5 has a decimal point, so it is a float. SLO CS-11-C-02 · Application

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise