What is printed? python x = 20.5 print(type(x))

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

C) <class 'float'

20.5 is a decimal number, so its type is float. SLO CS-11-C-02

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