How do I make strings and variables editable and printing them? (Python)
<p>Yes I know that this is very much to ask, and I'm sorry, but I usually learn the best by doing stuff instead of reading stuff.</p>

<p>So I would like to for example set a variable to 1995 and a string to John
and then when I open the python file, I would be able to see the name of the string and variable and change them, like this.</p>

<p><strong>python file:</strong></p>

<pre><code>Name  John
Year  1995
set year 2005
show options
Name John
Year 1995
</code></pre>

<p>And when I'm done I would like to print all strings and variables to a text file. You don't have to teach me like a baby, just tell me where I can find this information?</p>

<p>for learn you should read python reference:</p>

<p><a href="https://www.python.org/" rel="nofollow">https://www.python.org/</a></p>

<p>but :</p>

<p>in python create variable is very easy </p>

<pre><code>year = 1995
</code></pre>

<p>and then :</p>

<pre><code>year = input("Enter Year:")
print(year)
</code></pre>

<p>if you want save your data in file , you can use this method:</p>

<pre><code>my_result = open("myfile.txt","a")
my_result.write(year)
</code></pre>

<p>And all these can have different method in python </p>

python