# Get the character at position 1 of a string
my_string = "Hello, World!"
print("Original string:", my_string)
char_at_pos_1 = my_string[1]
print("Character at position 1:", char_at_pos_1)
Original string: Hello, World!
Character at position 1: e
Hello, World!
"` to the variable `my_string
`. We then use the `print()
` function to print the original value of `my_string
`.my_string
`. We assign the result of this operation to the variable `char_at_pos_1
`.print()
` function to print the character at position 1.e
'`.