Как правильно итерировать по списку с помощью цикла for?

python(loops&def&structures)

Quiz
•
Computers
•
11th Grade
•
Hard
Rasul Abdikerimov
Used 1+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for item in list:
for item from list:
for list in item:
for item list:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает функция range() в цикле for?
Создает список
Генерирует последовательность чисел
Удаляет элементы списка
Прерывает цикл
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как остановить выполнение цикла for досрочно?
continue
pass
break
stop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает цикл while?
Выполняет блок кода, пока условие истинно
Выполняет блок кода один раз, затем выходит
Выполняет блок кода заданное количество раз
Не поддерживает условия
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как правильно записать цикл while?
while x > 5:
while (x = 5):
while x = 5:
while x > 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как выйти из цикла while?
break
exit
continue
pass
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что произойдет, если условие в while всегда истинно?
Цикл завершится автоматически
Цикл будет выполняться бесконечно
Программа завершится с ошибкой
Цикл выполнится только один раз
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Тест от ФИПМ

Quiz
•
11th Grade
14 questions
Python циклы

Quiz
•
7th - 11th Grade
20 questions
Java Script 1.7.

Quiz
•
1st - 12th Grade
23 questions
Основы C#. часть3 (Циклы)

Quiz
•
7th Grade - University
19 questions
программирование

Quiz
•
9th Grade - University
16 questions
Вопросы по Python

Quiz
•
11th Grade
22 questions
Определение и основные понятия графа

Quiz
•
11th Grade
21 questions
Итоговый Квиз по Pygame и Python Start

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade