Telegram Group & Telegram Channel
🐣 Задача по Python #26

Описание

Напишите функцию count_word_occurrences, которая принимает на вход строку и возвращает словарь, содержащий количество каждого уникального слова в строке. При подсчете необходимо игнорировать регистр символов и знаки препинания.

Примеры

count_word_occurrences("Python is fun! Python is aboba.") # {'python': 2, 'is': 2, 'fun': 1, 'aboba': 1}

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи



tg-me.com/pythonturboru/506
Create:
Last Update:

🐣 Задача по Python #26

Описание

Напишите функцию count_word_occurrences, которая принимает на вход строку и возвращает словарь, содержащий количество каждого уникального слова в строке. При подсчете необходимо игнорировать регистр символов и знаки препинания.

Примеры

count_word_occurrences("Python is fun! Python is aboba.") # {'python': 2, 'is': 2, 'fun': 1, 'aboba': 1}

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи

BY Python Turbo. Уютное сообщество Python разработчиков.




Share with your friend now:
tg-me.com/pythonturboru/506

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

How to Use Bitcoin?

n the U.S. people generally use Bitcoin as an alternative investment, helping diversify a portfolio apart from stocks and bonds. You can also use Bitcoin to make purchases, but the number of vendors that accept the cryptocurrency is still limited. Big companies that accept Bitcoin include Overstock, AT&T and Twitch. You may also find that some small local retailers or certain websites take Bitcoin, but you’ll have to do some digging. That said, PayPal has announced that it will enable cryptocurrency as a funding source for purchases this year, financing purchases by automatically converting crypto holdings to fiat currency for users. “They have 346 million users and they’re connected to 26 million merchants,” says Spencer Montgomery, founder of Uinta Crypto Consulting. “It’s huge.”

The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.

Python Turbo Уютное сообщество Python разработчиков from ar


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA