Solutions -
# Define the input string
input_string = 'cd'
# Use the partition method to split the string
result = input_string.partition('cd')
# The 'result' variable now contains a tuple with three elements
# Element 0: The part of the string before the partitioned substring
# Element 1: The partitioned substring itself
# Element 2: The part of the string after the partitioned substring
# Print the result
print(result)