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 15:30
Hey so i was just trying out some game hacks so i took a paste from online and built it in my visual studio and then suddenly my computer was working or clicking on stuff on its own am i hacked?
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
question
Computers and Technology, 25.06.2019 15:00
Vote! q: what should my profile picture be next? a. flaming orange z. -or- b. mera mera no mi fruit from one piece anime?
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
English, 04.03.2021 19:30
question
Mathematics, 04.03.2021 19:30
question
Chemistry, 04.03.2021 19:30
question
Mathematics, 04.03.2021 19:30
question
Physics, 04.03.2021 19:30
question
Social Studies, 04.03.2021 19:30
question
Mathematics, 04.03.2021 19:30
Questions on the website: 13722367