title: Can't print out a string with $ in it
body: <p>I was quite bored and decided to experiment by making my own string 'encoder'. Everything went fine until I noticed a 'error' I'd say.</p>
  <p>In the code I have two functions encode &amp; decode, then argparse. The whole code pretty much looks like this:</p>
  <pre><code>def decode(thestring):
      decoded = &quot;&quot;
      for letter in thestring:
          if (letter == '~'):
              decoded += str('A')
          elif (letter == 'K'):
              decoded += str('a')
          elif (letter == '2'):
              decoded += str('B')
          elif (letter == 'n'):
              decoded += str('b')
  </code></pre>
  <p>Tried using '$' as some pages suggested, but not much of a luck. Also tried using '$$' and I got an output, but not what I expected.</p>
  <pre><code>elif (str(letter) == 'r'):
      encoded += str('$')
  </code></pre>
  <p>.</p>
  <pre><code>elif (str(letter) == 'r'):
      encoded += str('$$')
  </code></pre>
  <p><a href="https://i.stack.imgur.com/t7nFc.png" rel="nofollow noreferrer">https://i.stack.imgur.com/t7nFc.png</a> (without '$$')
  <a href="https://i.stack.imgur.com/5VD4l.png" rel="nofollow noreferrer">https://i.stack.imgur.com/5VD4l.png</a> (with '$$')</p>
  <p>I'm trying to make the $ dollar sign to work in a string and then to be able print it out after 'encoding' and 'decoding'
  Anyone could help me with a solution to this..?</p>