You can download this code by clicking the button below.
This code is now available for download.
Determines if both strings are composed only of lowercase letters.
Technology Stack : str, isinstance, ValueError
Code Type : Function
Code Difficulty : Intermediate
def ascii_lowercase(arg1, arg2):
try:
if not isinstance(arg1, str) or not isinstance(arg2, str):
raise ValueError("Both arguments must be strings.")
return arg1.islower() and arg2.islower()
except ValueError as e:
return str(e)