![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 08.09.2020 14:01 claytonhopkins
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](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 04.03.2021 19:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 04.03.2021 19:30
![question](/tpl/images/cats/biologiya.png)
Biology, 04.03.2021 19:30
![question](/tpl/images/cats/mat.png)
Mathematics, 04.03.2021 19:30
![question](/tpl/images/cats/himiya.png)
Chemistry, 04.03.2021 19:30
![question](/tpl/images/cats/geografiya.png)
Geography, 04.03.2021 19:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 04.03.2021 19:30
![question](/tpl/images/cats/mat.png)
Mathematics, 04.03.2021 19:30
![question](/tpl/images/cats/fizika.png)
Physics, 04.03.2021 19:30
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 04.03.2021 19:30
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 04.03.2021 19:30
![question](/tpl/images/cats/mat.png)
Mathematics, 04.03.2021 19:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 04.03.2021 19:30