English
Open in Telegram

Thread /code

2 messages · –
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
ССообщество Python ПрограммистовСообщество Python Программистов@python_scripts · group · Tech
4 169members44writing in 30 days
Venue feed Open in Telegram

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 · Index limits · Remove a page · Catalog · Search · How we count