python log information in separate file
<p>I'm creating a program in python, and i need to log information that i would normally log in a database, but i can't implement one right now. How do i write data to a python file, which has a dict matrix in it.</p>

<p>For example, if main.py has</p>

<pre><code>name = raw_input("Please enter your name")
age = raw_input("Please enter your age")
hair_colour = raw_input("Pleas enter your hair colour")
</code></pre>

<p>I want to write all of that data to my log.py file, so that it has</p>

<pre><code>logs = {
    ...
    ...
    'the name': {'age':'the age', 'hair colour':'the hair colour'}
}
</code></pre>
