subject

What is wrong in this code? My objective is to derive a function that prints the no of lowercase characters and uppercase characters.
I tried to find out but couldn't find out please help
def determine_upper_lower(value):
upper_case = 0
lower_case = 0

for i in value:
if i. isupper():
upper_case = upper_case + 1

elif i. islower():
lower_case = lower_case + 1

result = 'the number of uppercase letters are ' + str(upper_case) + ' and the number of lowercase letters are ' + str(lower_case)
return result

sample_string = 'Quick brown fox jumped over the lazy Dog'
print(determine_upper_lower(sample_ string))

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
You know the right answer?
What is wrong in this code? My objective is to derive a function that prints the no of lowercase ch...
Questions
question
Mathematics, 09.07.2021 21:50
question
Mathematics, 09.07.2021 21:50
Questions on the website: 13722360