# Iterate through each line of our list
for each_line in a_list_of_lines:
script_line_number = script_line_number + 1
# If an asterisk is found in the line (meaning that a character's lines are starting)
if each_line.find("*") != -1:
# Add the character's name to the 'character_appearance_lines' list
character_appearance_lines.append(each_line)
# Add the script line number to the appearance list
character_appearance_lines.append(script_line_number)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter