God I love python

Haven’t been using it for the last while and just came back.

I just realized I could write this little operation to mash together items of a list in a super simple and clear manner. I’m still new at this, but I doubt any other language is a slick as this:


row[5] = " ".join(row[5:len(row) -1])

Delightful.

Advertisements
This entry was posted in programming. Bookmark the permalink.

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