Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Write a program that should prompts the user to type some sentence (s) followed by “enter ”.it shou

  • Portal Express
  • 2020-04-09
  • 1015
Write a program that should prompts the user to type some sentence (s) followed by “enter ”.it shou
Write a program that should prompts the user to type some sentence (s) followed by “enter ”it should then print the original sentence (s) and the following statistics relating to sentence (s)numbers of character (including white-space and punctuation )percentage of character that are alphanumeric .Python revision Tour 2Python revision Tour 2 class 12Sumita arora class 12 solutiontype c Python revision Tour 2 sumita aroraPython revision Tour 2 sumita arora solution
  • ok logo

Скачать Write a program that should prompts the user to type some sentence (s) followed by “enter ”.it shou бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Write a program that should prompts the user to type some sentence (s) followed by “enter ”.it shou или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

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

Cкачать музыку Write a program that should prompts the user to type some sentence (s) followed by “enter ”.it shou бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Write a program that should prompts the user to type some sentence (s) followed by “enter ”.it shou

Q. Write a program that should prompts the user to type some sentence (s) followed by “enter ”. it should then print the original sentence (s) and the following statistics relating to sentence (s):
(i) Number of words
(ii) Numbers of character (including white-space and punctuation )
(iii) Percentage of character that are alphanumeric.

Website Link :-
https://www.pathwalla.com/2020/03/q-2...

Q 2 || Type C || Python revision tour 2 || Sumita Arora || Class 12 || Computer science || IP

Python revision tour 2 Playlist link ---
   • Python revision tour 2 || Class 12 || Comp...  

Answer :-

sen = input("Enter a sentence = ")
count = 1
alp = 0
for j in sen :
if j == " " :
count += 1
elif j.isalnum() :
alp += 1

print("Number of word is ",count)
print("Number of characters ",len(sen))
print("Percentage of alpha numeric = ", (alp / len(sen)) * 100)

Output :-

Enter a sentence = ? Welcome to our website Path Walla : )
Number of word is 9
Number of characters 39
Percentage of alpha numeric = 71.7948717948718

Enter a sentence = #Python is my Love?
Number of word is 4
Number of characters 19
Percentage of alpha numeric = 73.68421052631578

Tags --
python revision tour class 12
python revision tour class 12 notes
python revision tour class 12 ppt

Комментарии

Информация по комментариям в разработке

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

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

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