Skip to content

String Concatenation

Python String Concatenation

Doesn't do implicit typing. All operands have to be strings.

'Alice'+'Bob'  ==> 'AliceBob'
'Alice' * 5 ==> 'AliceAliceAliceAliceAlice'
str_one = "ice"
str_one += " cream"
str_one ==> "ice cream"