arrow
arrow
arrow
Which point can be considered as difference between string and list 7
Question

Which point can be considered as difference between string and list 7

A.

Accessmg 1nd1v1dual elements

B.

Indexing and Slicing

C.

Length

D.

Mutability

Correct option is D

The correct answer is (d) Mutability

  • The key difference between a string and a list in Python is mutability.

  • Strings are immutable, meaning once defined, their content cannot be changed.

  • Lists are mutable, meaning their elements can be modified, added, or removed.

Information Booster:
Strings store a sequence of characters, enclosed in ' ' or " ".
Lists can hold mixed data types (int, float, string, etc.).
• Both support indexing, slicing, and len().
• You can concatenate both using + operator.
• Use list() to convert a string to a list of characters.
• Strings are more memory efficient when data doesn’t need modification.​

test-prime-package

Access ‘BPSC AE’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
383k+ students have already unlocked exclusive benefits with Test Prime!
test-prime-package

Access ‘BPSC AE’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
383k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow