I have a Python script that is generating string with many characters and I need each string to create a folder with its name. But do not stick to the problem, because what I really want to know is how to limit that string to a desired size and store it in a variable. For example:
stringGrande = "gerando string com muitos caracteres e preciso de cada"
stringPequena = stringGrande (limitada)
print stringPequena
Resultado: gerando string com muitos
for example