I am coding a simple program in which I would like to have the user input a string and then my code will check from another string of characters (that are not allowed in the string).
The string of characters that are not allowed are:
invalidChar = (@,#,£,{,[,},],:,;,",',|,\,/,?,~,`)
For example, if the user inputs "testing@3testing" I would like the code to tell the user that there is a character in the input that is not allowed.
The way I originally thought was to use:
if password[i]=="@":
booleanCheck = True
but this would have to be repeated several times over and this would make for messy code.
Thanks in advance!