ChatCrawlerпоиск по публичному Telegram Открыть приложение
3

30 Days Of Python

снимок за август 2022
‹ август 2022 ›×
31 августа 2022
I
id 1353347414текст ещё не в индексе
You are checking for equality so the ifs are true if both strings are the same which in this case they're not. Assume the input is "hello world" so i will be "h" for the first iteration. Then every if checks if "h" is equal to the given string on right which it isnt bc string on right is "bcdfgh...". What you should do instead is to use "in" keyword instead of equality so it checks if the string on the left is used in string on the right. if i in v: Vo += 1 if i in c: Co +=1 ...
Write a Python program to count the occurrences of each word in a given¶ sentence?
Write a Python program to find the first repeated character in a given string
I
It's not accurate though. Assume the word is "hehe" so the first repeated char is h but this solution only checks every char with the next one and will not find a repeated char in the string like this.
I
Фотография
нажмите — покажем
any other way to solve this question.....??
Открыть в Telegram Каталог площадок Искать в ChatCrawler

Слепок открытой публичной ленты из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Чего мы не делаем · Убрать страницу из выдачи · Каталог