Print method "invalid syntax" reversing a string : <p>Trying to reverse a string in python and can't figure out what is wrong with my program that this is seen as invalid syntax. </p>

<pre><code>print(r)
        ^
SyntaxError: invalid syntax```

</code></pre>

<p>Thanks so much here is my code.</p>

<pre><code>
s = "Hello! my name is MangoKitty"
r = ''.join(reversed(s.split(''))
print(r)
</code></pre>
