words = 'His e-mail is q-lar@freecodecamp.org' pieces = words.split() parts = pieces[3].split('-') n = parts[1]
The function words.split() splits the string words into a list of four strings: 'His', 'e-mail', 'is' and 'q-lar@freecodecamp.org'. The function parts.split('-') splits the string 'q-lar@freecodecamp.org' into a list of two strings: 'q' and 'lar@freecodecamp.org'. The variable n is assigned the second string in the list parts, i.e., 'lar@freecodecamp.org'.