On 11/08/2011 11:56 AM, Cranky Frankie wrote:
How do you tell how many splits the string split funtion returns? For example:
field = 'The Good Wife ;' # a string separated by spaces
new_list = field.split(' ') # create a list of space delimited elements
print (new_list[0])
Cranky Frankie wrote:
How do you tell how many splits the string split funtion returns? For example:
field = 'The Good Wife ;' # a string separated by spaces
new_list = field.split(' ') # create a list of space delimited elements
print (new_list[0]) # print the first one
pr
On Tue, Nov 8, 2011 at 11:56 AM, Cranky Frankie wrote:
> How do you tell how many splits the string split funtion returns? For
> example:
>
> field = 'The Good Wife ;' # a string separated by spaces
> new_list = field.split(' ') # create a list of space delimited elements
> print (new_li
How do you tell how many splits the string split funtion returns? For example:
field = 'The Good Wife ;' # a string separated by spaces
new_list = field.split(' ') # create a list of space delimited elements
print (new_list[0]) # print the first one
print (new_list[1])