How to print input through texts (Python)
<p>I want my program to print the value of the variable 'sob' when I write: write("sob")</p>

<p>Code:</p>

<pre><code>str = input("&gt;")
sob = input(".")
if str == ('write("' + sob + '")'):
    print(sob)
else:
    print("SYNTAX ERROR")
</code></pre>