NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Senior95 views

Что будет выведено в терминал в результате выполнения следующего кода? r = range(3,0,-1) for i in range(0,4): print(all(r), end = ' ')

Practice

Asked at

AI answer

The following will be printed to the terminal:

True True True True

range can be iterated over repeatedly. Each call to all(r) checks the values 3, 2, and 1—all of which are truthy.