Python - Creating a text file converting Fahrenheit to Degrees
<p>I'm new to Python and I've been given the task to create a program which uses a text file which contains figures in Fahrenheit, and then I need to change them into a text file which gives the figures in Degrees... Only problem is, I have no idea where to start.
Any advice?</p>

<p>I'd start making a python script file (a text file with *.py), and write an expression that <a href="https://docs.python.org/3/tutorial/inputoutput.html" rel="nofollow">opens</a> your text file. You'll need to do some operations on <a href="https://www.tutorialspoint.com/python/python_strings.htm" rel="nofollow">strings</a> to get your lines of characters into a usable data structure (possibly a <a href="https://www.codecademy.com/courses/python-beginner-nzzVa/0/1?curriculum_id=4f89dab3d788890003000096" rel="nofollow">list</a> of floats).</p>

<p>Not required, but I also recommend you write a <a href="http://www.learnpython.org/en/Functions" rel="nofollow">function</a> that <a href="https://www.khanacademy.org/math/8th-engage-ny/engage-8th-module-4/8th-module-4-topic-d/v/converting-farenheit-to-celsius" rel="nofollow">converts</a> your units because it will make your code more readable.</p>

<p>Finally, you'll want to convert your numbers back into strings that can be <a href="https://pythonprogramming.net/writing-file-python-3-basics/" rel="nofollow">written</a> to a file, and then of course <a href="https://learnpythonthehardway.org/book/ex16.html" rel="nofollow">write</a> those lines to a file.</p>

<p>Check out the links I've provided as they take you to multiple learning materials for Python in general. You may find multiple answers to your problem under different tutorials, so explore!</p>

python