I want to check if my test string contain characters only from above string. Exa, Test string 1: “*&vgjgu^%$” Output: False as it contains characters which are not in predefined list.
Test string 2: “&%^#%)(” Output: True as it contains characters only from the predefined list.
Can anyone please help with logic for above without using iteration.