This assignment is based on Exercise 8.4 from your textbook. Each of the following Python functions is supposed to check whether its argument has any lowercase letters.
For each function, describe what it actually does when called with a string argument. If it does not correctly check for lowercase letters, give an example argument that produces incorrect results, and describe why the result is incorrect.
def any_lowercase4 (s):
flag = False
for c in s:
flag = flag or c. islower ()
return flag
print (any_lowercase4 (s))
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “This assignment is based on Exercise 8.4 from your textbook. Each of the following Python functions is supposed to check whether its ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » This assignment is based on Exercise 8.4 from your textbook. Each of the following Python functions is supposed to check whether its argument has any lowercase letters.