Select the correct answerWhich one of the following is immutable data type?Optionssetlistintdict
Question
Select the correct answerWhich one of the following is immutable data type?Optionssetlistintdict
Solution
The correct answer is int. This is because in Python, an integer (int) is an immutable data type. This means that it cannot be changed after it is created. On the other hand, sets, lists, and dictionaries are mutable data types, meaning they can be changed after they are created.
Similar Questions
Select the correct answerIn Python, which data type is used to store a sequence of immutable elements?OptionsTupleListSetDictionary
Choose the correct answerWhich of these about a set is not true?OptionsMutable data typeAllows duplicate valuesData type with unordered valuesImmutable data type
Choose the Correct Answer(s)What is the data type of a after the following statement?a = ()Optionsintlisttupleset
Select the correct answerWhich of these in not a core data type?OptionsListsTuplesClassDictionary
Which of the following is an immutable data type in Python?AListBDictionaryCTupleDSetSubmit Test Prev
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.