Computer Science, asked by roshni8534, 11 months ago

How are lists different from strings when both are sequences ?

Answers

Answered by cutygirl22
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 Raghav1330
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