Pytthon / TXT: code to copy text after string : <p>I have a txt file that will be different for different users, it looks something like:</p>

<pre><code>NAME: Joe Bloggs
USERNAME: BLOGJOE
EMAIL: Joe.Bloggs@JB.com
PASSWORD: IAMJOE
</code></pre>

<p>I am trying to make an function where I can choose optional inputs for example, I want username and Password, then it will just return those 2 from the function, but have the ability to return all. How would I do this?</p>
