ropering / Study

0 stars 0 forks source link

[Python[ is_lower_case #7

Open ropering opened 2 years ago

ropering commented 2 years ago
/*
문자열을 받아 소문자로 이루어졌는지 판단하는 함수
*/
def is_lower_case(string):
    return string == string.lower()

is_lower_case('abcde') # True
is_lower_case('abcdE') # False