title: Special Characters in string literals
body: <p>I am making a set in Python to house all the symbols on my keyboard, but obviously a few pose some issues. Is there a way to get them all in there without encountering problems?</p>
  
  <p>Here is my set:</p>
  
  <pre><code>symbols = {`,~,!,@,#,$,%,^,&amp;,*,(,),_,-,+,=,{,[,},},|,\,:,;,",',&lt;,,,&gt;,.,?,/}
  </code></pre>
  
  <p>To get around commenting out most of it, since in Python <code>#</code> is to comment, I enclosed everything like so:</p>
  
  <pre><code>symbols = {'`','~','!','@','#','$','%','^','&amp;','*','(',')','_','-','+','=','{','[','}','}','|','\',':',';','"',''','&lt;',',','&gt;','.','?','/'}
  </code></pre>
  
  <p>Which works for that character, but now I can already see an issue when I come across the <code>'</code> and <code>\</code>. Is there a better way to make this set?</p>