Hello I'm trying an hackerrank problem : String Validators
I actually solved the question but i'm trying a different approach on it.
Such as:
list=['isalnum()','isalpha()','isdigit()','islower()','isupper()']
for l in list:
count =0
for i in range(len(s)+1):
a=i.l
if a==1:
count+=1
if count !=0:
print(False)
elif count >0:
print(True)
Is there any way that I can convert components inside the list as a function and use it?