Source Code:
(back to article)
original_string = "Hello, world!" # Get the last 5 characters substring = original_string[-5:] print(substring)
Result:
Report an issue