Advertisement

Converting Between Strings and Lists in Python

Converting Between Strings and Lists in Python You’ll explore string methods that convert between a string and some composite data type by either pasting objects together to make a string, or by breaking a string up into pieces. These methods operate on or return iterables, the general Python term for a sequential collection of objects.

Many of these methods return either a list or a tuple. A list encloses the collection of objects in square brackets ([]) and is mutable. A tuple encloses its objects in parentheses (()) and is immutable.

Click here to learn more:

python,python programming,learn python,python string,python list,

Post a Comment

0 Comments