Français
Ouvrir dans Telegram
ССообщество Python Программистов

Сообщество Python Программистов

✅ Confiance élevée
@python_scripts · groupe · Technologie · dans l'index depuis 24/05/2026
4 169membres
44écrivent en 30 jours
485messages en 30 jours
904 487messages dans l'index
A
ююэ эдэпмдэдю/Х
V
Снова кодировка слетела в чате?
L
любители пошифровать сообщения в кастомных клиентах видимо, давно такого не видел
V
/code SMALL = 10 BIG = 100 def big_inner(): iterations = 0 for s in range(SMALL): iterations += 1 for b in range(BIG): iterations += 1 return iterations def big_outer(): iterations = 0 for b in range(BIG): iterations += 1 for s in range(SMALL): iterations += 1 return iterations print(f"Iterations: {big_inner()=} {big_outer()=}")
  1. P
    Status: Succeeded Exit code: 0 Execution time: 1.8s Code SMALL = 10 BIG = 100 def big_inner(): iterations = 0 for s in range(SMALL): iterations += 1 for b in range(BIG): iterations += 1 return iterations def big_outer(): iterations = 0 for b in range(BIG): iterations += 1 for s in range(SMALL): iterations += 1 return iterations print(f"Iterations: {big_inner()=} {big_outer()=}") Result Iterations: big_inner()=1010 big_outer()=1100
Tout le fil de discussion · 1 réponse →
V
Помучаю ваши мозги сегодня
    1. 🍉
      А, в этом и смысл, я понял. Ладно, помучал)
Tout le fil de discussion · 2 réponses →
  1. P
    Status: Succeeded Exit code: 0 Execution time: 1.8s Code def inner_outer(x, y): return x*y + x SMALL = 10 BIG = 100 print(f'Iterations: big_inner()={inner_outer(SMALL, BIG)} big_outer()={inner_outer(BIG, SMALL)}') Result Iterations: big_inner()=1010 big_outer()=1100
Tout le fil de discussion · 1 réponse →
  1. V
    Ну в целом да, циклы можно было и не гонять
Tout le fil de discussion · 1 réponse →
V
Правда с этой хуиты я в осадок выпал 🤔 f"big_inner()={inner_outer(SMALL, BIG)}"

Un fil public ouvert issu de l'index de recherche ChatCrawler — « le Google du Telegram public » ; actualisé à mesure que la communauté est explorée. Les heures sont en UTC.

Contenu public uniquement, API officielle de Telegram. À propos · FAQ · Limites de l'index · Retirer une page · Catalogue · Recherche · Comment nous comptons