Question: Python program Write a Python function called is_lower that accepts a string as parameter and returns True if all the characters in the string are
Python program
Write a Python function called is_lower that accepts a string as parameter and returns True if all the characters in the string are in lower case. In all other cases, the function returns False. Sample Input: is_lower('a') Output: True. Sample Input: is_lower(ABcd) Output: False. Hint: You can use ord() to get the Unicode of a character. Check appendix A for the ascii codes for different characters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
