How can i compare if a text line starts with a word in Python? : <p>I have a key text "Outros" and a text file im reading and enumerating. I need to print only the lines that starts with that key. Is it possible?</p>

<p>Im alreadying printing lines, but it prints every line that has this key inside the line, not only the start. I really have no idea of how i can do this.</p>

<pre><code>for index, line in enumerate(lines):
    if a in line:
        print(line.rstrip())
    if b in line:
        print(line.rstrip())
</code></pre>
