Source Code:
(back to article)
# String concatenation print("Hello" + " " + "World") # String repetition print("Hello" * 3) # String indexing print("Hello"[0]) # String slicing print("Hello"[1:4])
Result:
Report an issue