I WANNA RUN ALL THESE FUNCTIONS BY USING A FOR LOOP, BY CHANING THE FUNCTION NAME INSIDE THE FOR LOOP
# 1
def any_lowercase1(s):
for c in s:
if c.islower():
return True
else:
return False
# 2
def any_lowercase2(s):
for c in s:
if 'c'.islower():
return 'True'
else:
return 'False'
for i in range (2):
func_statement = (any_lowercase+i) #I tried converting this to a string it didn't work ("any_lowercase"+str(i+1))
print("Word 'Hello' islowercase-" , func_statement("Hello"))
print("Word 'hello' islowercase-", func_statement("hello"))
print("Word 'HELLO' islowercase-", func_statement("HELLO"))
print("Word 'heLlO' islowercase-", func_statement("heLlO"))
print("\n")