SharkKinger
18.08.2022 08:03

Впайтоне. нужно написать код и объяснить. задається деякий текст, що зберігається у строковій змінній text. значення змінної text може займати декілька рядків коду. необхідно. 1. знайти кількість слів у тексті. словом вважається будь-який скінчений набір літер. слова розділяються символом space-“ ”. 2. знайти кількість спеціальних символів у тексті. спеціальним символів вважається будь-який символ, що не є літерою чи цифрою. 3. знайти кількість чисел у тексті. числом вважається будь-яка послідовність цифр, що відповідає одному з трьох наступних правил: • {d}…{d} • {d}…{d}{.}{d}…{d} • {d}…{d}{,}{d}…{d} де {d} – digit, цифра; {.} – символ крапка; {,} – символ кома. 3.1. між знаком і числом, цифрами, цифрами и символами кома або крапка пропусків не має бути. 3.2. наприклад, ‘’123,3” – одне число, ‘’123, 258” – два числа, ‘’123-258” – два числа тощо. 4. знайти найдовше слово у тексті. 5. знайти слово, що зустрічається у тексті найчастіше. якщо таких слів декілька, знайти всі. 6. знайти символ, що зустрічається у тесті найрідше. якщо таких символів декілька, знайти всі. 7. видалити з тексту найкоротше слово. вивести новий текст. 8. змінити у тексті кожну літеру на її номер у алфавіті. вивести новий текст. наприклад, замінити символи “a” або “a” на “01” тощо.

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
Alice1st
11.07.2020 10:56

it   was   july   16,   2008   and   i   was   at   city   hall   to   do   something   thatwould change my life forever. i went to room 302 and got my workingcard.   i   thought   i   was   independent   and   ready   to   get   a   job.

first i filled in applications. i put in over 100 applications at restau-rants, clothing stores, and hotels. i kept looking for a job, and i decidedto   go   to   the   mall.   i   was   interested   in   getting   a   place   in   one   restaurantbecause my good school friend worked there, and he told me they neededpeople.   i   thought   it   might   turn   out   to   be   successful.

one   day,   when   i   came   home   and   turned   on   the   answering   machine,there was a message on it. it was a job! a lady from a supermarket calledme   for   an   interview   on   tuesday.   i   was   very   excited.   this   was   my   first  interview.   on   sunday   i   got   up   early,   my   mom   and   i   went   shopping   fora dress. i put on this dress on tuesday. the lady asked me a lot of questi-ons,   but   i   thought   over   the   answers   the   day   before.

i   didn’t   get   the   job,   but   i   found   out   that   you   can’t   get   a   job   easily.it’s   very   hard   work.

0,0(0 оценок)
Ответ:
MrDog2005
11.07.2020 10:56

it   was   july   16,   2008   and   i   was   at   city   hall   to   do   something   that would change my life forever. i went to room 302 and got my workingcard.   i   thought   i   was   independent   and   ready   to   get   a   job.

first i filled in applications. i put in over 100 applications at restau-rants, clothing stores, and hotels. i kept looking for a job, and i decidedto   go   to   the   mall.   i   was   interested   in   getting   a   place   in   one   restaurantbecause my good school friend worked there, and he told me they neededpeople.   i   thought   it   might   turn   out   to   be   successful.

one   day,   when   i   came   home   and   turned   on   the   answering   machine,there was a message on it. it was a job! a lady from a supermarket calledme   for   an   interview   on   tuesday.   i   was   very   excited.   this   was   my   first  interview.   on   sunday   i   got   up   early,   my   mom   and   i   went   shopping   fora dress. i put on this dress on tuesday. the lady asked me a lot of questi-ons,   but   i   thought   over   the   answers   the   day   before.

i   didn’t   get   the   job,   but   i   found   out   that   you   can’t   get   a   job   easily.it’s   very   hard   work.

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота