variableName=[\"display\",\"screen\",\"sound\"\"audio\"] fileName=[\"PPP\", \"Abc\"] P1=\"PPP\" d=\"display\" s=\"screen\" ss=\"sound\" a=\"audio\" d=P1 loop=True def CH
I think you've got the logic of your in statement backwards. You should be checking
in
if Up.lower() in variableName:
not the other way around.