Computers and Technology, 01.03.2021 15:10 imatrueguyp612be
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.
# 1
def any_lowercase1(s):
for c in s:
if c. islower():
return True
else:
return False
# 2
def any_lowercase2(s):
for c in s:
if 'c'.islower():
return 'True'
else:
return 'False'
# 3
def any_lowercase3(s):
for c in s:
flag = c. islower()
return flag
# 4
def any_lowercase4(s):
flag = False
for c in s:
flag = flag or c. islower()
return flag
# 5
def any_lowercase5(s):
for c in s:
if not c. islower():
return False
return True
Answers: 1
Computers and Technology, 21.06.2019 23:30
You picked the corridor which led you here. if the guards find you, they're going to be really angry! what is the synonym of angry
Answers: 1
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
This assignment is based on Exercise 8.4 from your textbook. Each of the following Python functions...
Arts, 09.01.2021 01:00
Mathematics, 09.01.2021 01:00
Spanish, 09.01.2021 01:00
Mathematics, 09.01.2021 01:00
History, 09.01.2021 01:00
Mathematics, 09.01.2021 01:00
Mathematics, 09.01.2021 01:00
History, 09.01.2021 01:00
Chemistry, 09.01.2021 01:00
History, 09.01.2021 01:00
Mathematics, 09.01.2021 01:00
Mathematics, 09.01.2021 01:00
Mathematics, 09.01.2021 01:00
Mathematics, 09.01.2021 01:00