Source Code:
(back to article)
my_string = "Hello, World!" print(my_string[:5]) # Output: "Hello" print(my_string[7:]) # Output: "World!"
Result:
Report an issue