I'm making a set in Python to house entire symbols on my keyboard, yet clearly, a couple of representing a few issues. Is there an approach to get them all in there without experiencing issues?
Look at my set:
symbols = {`,~,!,@,#,$,%,^,&,*,(,),_,-,+,=,{,[,},},|,\,:,;,",',<,,,>,.,?,/}
To get around remarking out its vast majority, since in Python # is to comment, I encased everything like so:
symbols = {'`','~','!','@','#','$','%','^','&','*','(',')','_','-','+','=','{','[','}','}','|','\',':',';','"',''','<',',','>','.','?','/'}
This works for that character, however now I would already be able to see an issue when I run over the ' and \. Is there a superior method to make this set?