How to fill an empty string which has already been created in python

python, string

Solution

The right name would be to concatenate a string to another, you can do this with the `+` operator:

s = ""
s = s + "some string"
print s

>>> "some string"

Problem

I have created an empty string: ``` s = "" ``` how can I append text to it? I know how to append something to a list like: ``` list.append(something) ``` but how one can append something to an empty string?

Original source