Split string into groups of 3 characters

Viewed 21683

I have a string

ddffjh3gs

I want to convert it into a list

["ddf", "fjh", "3gs"]

In groups of 3 characters as seen above. What is the best way to do this in python 2.7?

1 Answers
Related