ycliper

Популярное

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

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

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

Топ запросов

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

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

Автор: Code With TJ

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

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

Описание: 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,

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Write Python Function Accepts String and Calculate Number Of Upper Case Letters, Lower Case Letters

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

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

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

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

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

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

25 привычек новичка в Python, от которых стоит избавиться

25 привычек новичка в Python, от которых стоит избавиться

Уроки Python с нуля / #3 – Базовые операции в языке Python

Уроки Python с нуля / #3 – Базовые операции в языке Python

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

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

У меня ушло 10+ лет, чтобы понять то, что я расскажу за 11 минут

У меня ушло 10+ лет, чтобы понять то, что я расскажу за 11 минут

Декораторы Python — наглядное объяснение

Декораторы Python — наглядное объяснение

Объяснение списков, множеств и кортежей в Python 🍍

Объяснение списков, множеств и кортежей в Python 🍍

Курс Python с Абсолютного нуля! [12 часов из 80] Python курс - качественный старт для начинающих!

Курс Python с Абсолютного нуля! [12 часов из 80] Python курс - качественный старт для начинающих!

Весь синтаксис Python за 25 минут – Учебное пособие

Весь синтаксис Python за 25 минут – Учебное пособие

40 String methods in Python with examples | Amit Thinks

40 String methods in Python with examples | Amit Thinks

Твоя ПЕРВАЯ НЕЙРОСЕТЬ на Python с нуля! | За 10 минут :3

Твоя ПЕРВАЯ НЕЙРОСЕТЬ на Python с нуля! | За 10 минут :3

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

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

Где начало СХЕМЫ? Понимаем, читаем, изучаем схемы. Понятное объяснение!

Где начало СХЕМЫ? Понимаем, читаем, изучаем схемы. Понятное объяснение!

Как запоминать всё, как японские студенты (и учиться меньше)

Как запоминать всё, как японские студенты (и учиться меньше)

ВСЕ компоненты ПК: объясняю за 10 минут

ВСЕ компоненты ПК: объясняю за 10 минут

Windows 11 и 9999 год: почему для системы это конец света?

Windows 11 и 9999 год: почему для системы это конец света?

Изучаем Python - Полный курс для начинающих

Изучаем Python - Полный курс для начинающих

СУПЕР ТЕСТ на ПАМЯТЬ. У тебя хорошая память? ПРОЙДИ за 10 СЕКУНД | БУДЬ В КУРСЕ TV

СУПЕР ТЕСТ на ПАМЯТЬ. У тебя хорошая память? ПРОЙДИ за 10 СЕКУНД | БУДЬ В КУРСЕ TV

pip & PyPI in python | Packages in Python | Python Tutorials for Beginners #lec108

pip & PyPI in python | Packages in Python | Python Tutorials for Beginners #lec108

Python Functions: Learn Via Quick Coding Project For Beginners

Python Functions: Learn Via Quick Coding Project For Beginners

STRINGS INITIALIZATION, CONCATENATION & REPETITION || PYTHON PROGRAMMING

STRINGS INITIALIZATION, CONCATENATION & REPETITION || PYTHON PROGRAMMING

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



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



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