[Python] Enumerate a string to substrings

Today I’d like to show you a quick hint that might be obvious, but it took useful, it’s about the enumeration of string to substrings.


You probably know the deffinition of a substring, so Y is a substring for X if: X = U.Y.V

Enjoy !

Advertisements

Tagged: , , , , ,

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

%d bloggers like this: