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

30 Days Of Python

снимок за сентябрь 2021
сентябрь 2021 ×
28 сентября 2021
lang_list = list() lang_set= set() for country in countries: for country_key,country_Values in country.items(): if country_key == 'languages': lang_list = lang_list + country_Values else: lang_list.sort(reverse=True) for lang in lang_list: lang_set.update([(lang_list.count(lang), lang)]) lang_counts_lst = list(lang_set) lang_counts_lst.sort(reverse = True) # print(lang_counts_lst) i = 0 while(i<=9): print (lang_counts_lst[i]) i = i + 1
(91, 'English') (45, 'French') (25, 'Arabic') (24, 'Spanish') (9, 'Russian') (9, 'Portuguese') (8, 'Dutch') (7, 'German') (5, 'Chinese') (4, 'Swahili')
I am able to found it
But i wanted to print only Languages without count. I will try tomorrow. As i printed from the List i dont think i can extract that language in the list item.
Is there any way that my while loop can print only the Langugaues without the count..?
29 сентября 2021
How to get a Random character..? Is there any fucntion in the Random module..?
I am trying to resolve this excercise in the Modules "Declare a function named user_id_gen_by_user. It doesn’t take any parameters but it takes two inputs using input(). One of the inputs is the number of characters and the second input is the number of IDs which are supposed to be generated."
I
But i got stuck on how to retrieve the random character. Is there any function that we can get the random character or Should i store the alphabets in a string and exrtaact the characters based on the random index..?
30 сентября 2021
A
Ссылка
нажмите — покажем
I would like to ask you to spend some time writing a testimonial, that will help others know about the content and author. Thank you for your support. https://testimonify.herokuapp.com/
Открыть в Telegram Каталог площадок Искать в ChatCrawler

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

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