ChatCrawlersearch across public Telegram Open the app
P

python خانه پایتون گروه آموزشی برنامه نویسی

сообщение · 2024-08-12 20:19 UTC
M
Replymessage unavailable
numbers_en = {     1: "One",     2: "Two",     3: "Three",     4: "Four",     5: "Five" } numbers_fr = {     1: "Un",     2: "Deux",     3: "Trois",     4: "Quatre",     5: "Cinq" } while True:     user_input = input("Enter a number and a language (en/fr) or 'End' to stop: ")     if user_input.lower() == 'end':         break     else:         try:             num_str, lang = user_input.split()             num = int(num_str)                         if lang.lower() == 'en':                 translation = numbers_en.get(num, "Translation not available")             elif lang.lower() == 'fr':                 translation = numbers_fr.get(num, "Translation not available")             else:                 translation = "Language not supported"                         print(translation)         except ValueError:             print("Invalid input. Please enter a number followed by a language (en/fr).")

Вся лента · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog