how are list different from string . explain giving suitable example
Answers
Answered by
2
Answer:
Strings can only consist of characters, while lists can contain any data type. Because of the previous difference, we cannot easily make a list into a string, but we can make a string into a list of characters, simply by using the list() function. ... Strings are immutable, meaning that we cannot update them.
Answered by
0
Answer:
Strings can only consist of characters, while lists can contain any data type. Because of the previous difference, we cannot easily make a list into a string, but we can make a string into a list of characters, simply by using the list() function. ... Strings are immutable, meaning that we cannot update them
Explanation:
here is your answers
Attachments:
Similar questions