Share
conditional operator to check lower case
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Use a conditional operator to check if a string is lower case or not.
Answer ( 1 )
print( “lower case” if b.islower() else “not lower case” )