python string add variable value 2.7 code example Example: how to add a variable to an string var str = "ello"; var letter = "h"; str = letter + str;