A bit of Python code

PHOTO EMBED

Tue Apr 06 2021 15:25:43 GMT+0000 (Coordinated Universal Time)

Saved by @SirClickalot #python

# 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)
content_copyCOPY