<human>:  how to get index from parent as a child.
<bot>: Here is a Python function to get an index from a parent as a child

import re

def get_index_from_parent_as_child(parent, child):
  """Get index from parent as a child."""
  return parent.index(child)

# Enter the parent and child
parent = "abcdefghijklmnopqrstuvwxyz"
child = "def"

# Calling the function
index = get_index_from_parent_as_child(parent, child)

# Printing the index
print(index)

#Example Output
# 3

#Remember to inspect code for bugs.