Ring Documentation Walkthrough #8.1 – str2list & list2str

We can convert strings to lists and the opposite using str2list & list2str functions.

str = `Step 1
Step 2
Step 3`
list_of_string = str2list (str)
see type(list_of_string) #output: LIST
see list_of_string

string_of_list = list2str (list_of_string)
see type(string_of_list) #output: STRING
see string_of_list

This is how we use these functions.

See you in the next post of strings.

amrESSAM.

Advertisements
Ring Documentation Walkthrough #8.1 – str2list & list2str

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s