what is the difference between strings and lists in python with example
Answers
Answered by
2
☆☆
Strings and lists are similar, but they are not same and many people don’t know the main difference between a string and a list in python. One simple difference between strings and lists is that lists can any type of data i.e. integers, characters, strings etc, while strings can only hold a set of characters.
Answered by
2
Question:-
what is the difference between strings and lists in python with example
- Strings and Lists are 2 important data types in the suite of structured data types in python.
- Strings and lists are similar, but they are not same and many people don’t know the main difference between a string and a list in python.
- One simple difference between strings and lists is that lists can any type of data i.e. integers, characters, strings etc, while strings can only hold a set of characters.
hope it helps you..
Similar questions