Question Detail

COS 102 lecture 4 Objective Question

Question

Which of the following is a supported numerical type in Python, as listed on page 38?
Options
A short
B double
C complex
Correct Answer
D byte
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 38 states: 'Python supports four different numerical types - int (signed integers), long (long integers...), float (floating point real values), complex (complex numbers)'. 'complex' is one of the listed types.

Hint

Check the bullet points under 'Python Numbers' on page 38 for the supported numerical types.

Question Info