How do you save the inputs into text file?
<p>How do i save the inputs of program into a file from the program.
Python only:
i need to add it to this:</p>
<h1>TASK 2 AGAIN</h1>
<pre><code>sentence = input(&quot;Please input a sentence: &quot;)
print(sentence)
word=input(&quot;Please enter word and position wil be shown: &quot;)
if word in sentence:
    print(&quot;Found word&quot;)
else:
    print (&quot;Word not found&quot;)
</code></pre>
<p>But i haven't got a clue</p>