Python Variables and Data Types
Python Variables and Data Types - Important Points
16. | Which of the following data types is immutable? |
---|
A. List
B. Dictionary
C. Tuple
D. Set
View Answer Discuss Work SpaceAnswer: option c
Explanation:
A tuple is a collection of items that are ordered and immutable. Once a tuple is created, its values cannot be modified.
17. | Which of the following is not a valid Python data type? |
---|
A. Complex
B. Byte
C. Long
D. Double
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There is no data type called "double" in Python. The equivalent data type is the float.