How are lists different from strings when both are sequences ?
Answers
Answered by
12
ANSWER.
ONE SIMPLE DIFFERENCE BETWEEN STRINGS AND LISTS IS THAT LIST CAN ANY TYPE DATA I.E. INTEGERS, CHARACTER, STRINGS ETC.
HOPE IT'S HELP UH ✌️✌️
Answered by
49
Lists are different from strings when both are sequences due to following reasons :
- The main difference between the lists and the strings is that lists are termed to be mutable and strings are not mutable.
- Further strings can only be changed if they're assigned with any kind of variable.
- Another reason is that strings are designed only to hold characters whereas lists are designed to hold numbers , characters and integers.
Similar questions
Hindi,
5 months ago
Political Science,
5 months ago
Science,
5 months ago
Computer Science,
9 months ago
Computer Science,
9 months ago
English,
1 year ago