# Substring - Get the characters from position 2 to position 5 (not included)
my_string = "Hello, World!"
print("Original string:", my_string)
substring = my_string[2:5]
print("Substring:", substring)Original string: Hello, World!
Substring: llomy_string`. We then use the `print()` function to print the original value of `my_string`.:`) operator to get a substring that starts at position 2 and ends at position 5 (not included) of `my_string`. We assign the result of this operation to the variable `substring`.print()` function to print the substring.l'`, `'l'`, and `'o'`.