# Sample code demonstrating resolution of "object is not subscriptable" error
# Example list that can be subscripted
my_list = [1, 2, 3, 4, 5]
# Subscripting an iterable object (e.g., list)
print(my_list[2]) # Output: 3
# Example dictionary that can be subscripted by keys
my_dict = {'a': 1, 'b': 2, 'c': 3}
# Subscripting a dictionary using keys
print(my_dict['b']) # Output: 2
# Example object with no subscripting support
my_object = 123
# Attempting subscripting on an object, which raises an error
print(my_object[0]) # Raises "TypeError: 'int' object is not subscriptable"