Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Write Python Function Accepts String and Calculate Number Of Upper Case Letters, Lower Case Letters

Автор: Code With TJ

Загружено: 2022-07-17

Просмотров: 4698

Описание:

Hi In this video I tried to explain about how to write a python function that accepts a string and calculate the number of upper case letters and lower case letters


Python Scripts
======================
https://codewithtj.blogspot.com/2024/...

Python Functions Solved
==========================
https://codewithtj.blogspot.com/2023/...

Python Programs Solved
============================
https://codewithtj.blogspot.com/2023/...


Steps
=================
a) define a function and pass string as arguments
b) initialize upper counter and lower counter to zero
c) using for loop traverse all the letters in string
d) check if letter is upper or lower and increment the counter as required
e) finally print the counters
f) Accept the user input string and call the function, by passing the input string to it

Code
===============
def count_upper_lower(string1):
upper_count = 0
lower_count = 0
for char in string1:
if char.isupper():
upper_count += 1
elif char.islower():
lower_count += 1
print("Upper Case Count is %d Lower Case Count is %d " %(upper_count, lower_count))


temp = input("Enter a String : ")
count_upper_lower(temp)

Keywords
==============
write a python function that accepts a string and calculate the number of upper case letters and lower case letters,
how to count upper case and lower case in python,
python program to count the number of upper and lower case characters in a string,
how to count upper and lower case in python,
how to count upper and lower case in python,
count upper and lowercase in python,
count uppercase and lowercase in python,
python program to count the number of upper and lower case characters in a string,
python program to count the number of upper and lower case letters in a string,
python program to count the number of upper and lower case letters in a string,
python program to count the number of upper and lower case characters in a string,
python program to count the number of upper and lower case letters in a string,
python program to count the number of upper and lower case characters in a string,
python program to count the number of upper and lower case letters in a string,
python program to count the number of upper and lower case characters in a string,
python program to count the number of upper and lower case letters in a string,
how to count upper and lower case in python,
python program to count the number of upper and lower case characters in a string,
python program to count the number of upper and lower case letters in a string,

Write Python Function Accepts String and Calculate Number Of Upper Case Letters, Lower Case Letters

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#4635 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "wDmPgXhlDIg" ["related_video_title"]=> string(121) "Python — полный курс для начинающих. Этот навык изменит твою жизнь." ["posted_time"]=> string(19) "1 год назад" ["channelName"]=> string(39) "Александр Ильин про IT" } [1]=> object(stdClass)#4608 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "cfJrtx-k96U" ["related_video_title"]=> string(59) "Python - Полный Курс по Python [15 ЧАСОВ]" ["posted_time"]=> string(19) "1 год назад" ["channelName"]=> string(16) "Bogdan Stashchuk" } [2]=> object(stdClass)#4633 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "5g-MHZ0MzZY" ["related_video_title"]=> string(148) "Учим python за 7 часов! Уроки Python Полный курс обучения программированию на python с нуля" ["posted_time"]=> string(21) "3 года назад" ["channelName"]=> string(17) "Python Hub Studio" } [3]=> object(stdClass)#4640 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "89cGQjB5R4M" ["related_video_title"]=> string(33) "Functions in Python are easy 📞" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(8) "Bro Code" } [4]=> object(stdClass)#4619 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "_uQrJ0TkZlc" ["related_video_title"]=> string(32) "Python Full Course for Beginners" ["posted_time"]=> string(19) "6 лет назад" ["channelName"]=> string(21) "Programming with Mosh" } [5]=> object(stdClass)#4637 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "h3RFPALHcOc" ["related_video_title"]=> string(115) "8 инструментов в Excel, которыми каждый должен уметь пользоваться" ["posted_time"]=> string(21) "3 года назад" ["channelName"]=> string(47) "Билял Хасенов – Excel, VBA & More" } [6]=> object(stdClass)#4632 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "LjOewfgdM18" ["related_video_title"]=> string(171) "ВОССТАНОВЛЕНИЕ НЕРВНОЙ СИСТЕМЫ 🌸 Нежная музыка, успокаивает нервную систему и радует душу #6" ["posted_time"]=> string(27) "5 месяцев назад" ["channelName"]=> string(15) "Relax Your Soul" } [7]=> object(stdClass)#4642 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "RnHC1XiNWS8" ["related_video_title"]=> string(94) "Венедиктов – страх, Симоньян, компромиссы / вДудь" ["posted_time"]=> string(19) "3 дня назад" ["channelName"]=> string(10) "вДудь" } [8]=> object(stdClass)#4618 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "KdZ4HF1SrFs" ["related_video_title"]=> string(51) "Алгоритмы на Python 3. Лекция №1" ["posted_time"]=> string(19) "7 лет назад" ["channelName"]=> string(31) "Тимофей Хирьянов" } [9]=> object(stdClass)#4636 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "W38wuBV_OqM" ["related_video_title"]=> string(183) "«Идёт Третья мировая война!». Командир «Ахмата» потребовал мобилизовать миллион россиян" ["posted_time"]=> string(24) "14 часов назад" ["channelName"]=> string(37) "Популярная политика" } }
Python — полный курс для начинающих. Этот навык изменит твою жизнь.

Python — полный курс для начинающих. Этот навык изменит твою жизнь.

Python  - Полный Курс по Python [15 ЧАСОВ]

Python - Полный Курс по Python [15 ЧАСОВ]

Учим python за 7 часов! Уроки Python Полный курс обучения программированию на python с нуля

Учим python за 7 часов! Уроки Python Полный курс обучения программированию на python с нуля

Functions in Python are easy 📞

Functions in Python are easy 📞

Python Full Course for Beginners

Python Full Course for Beginners

8 инструментов в Excel, которыми каждый должен уметь пользоваться

8 инструментов в Excel, которыми каждый должен уметь пользоваться

ВОССТАНОВЛЕНИЕ НЕРВНОЙ СИСТЕМЫ 🌸 Нежная музыка, успокаивает нервную систему и радует душу #6

ВОССТАНОВЛЕНИЕ НЕРВНОЙ СИСТЕМЫ 🌸 Нежная музыка, успокаивает нервную систему и радует душу #6

Венедиктов – страх, Симоньян, компромиссы / вДудь

Венедиктов – страх, Симоньян, компромиссы / вДудь

Алгоритмы на Python 3. Лекция №1

Алгоритмы на Python 3. Лекция №1

«Идёт Третья мировая война!». Командир «Ахмата» потребовал мобилизовать миллион россиян

«Идёт Третья мировая война!». Командир «Ахмата» потребовал мобилизовать миллион россиян

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]